diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-30 01:35:30 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-13 16:50:50 +0200 |
commit | b7fb24ce6f9b53d70c3cb8f00ea1f85ea0ea905c (patch) | |
tree | b4e8d73ecaf410fe7e2d469f6b0c398c5882f49c /lib/thread.h | |
parent | Merge pull request #3007 from pacovn/static_analysis__shadow_variables2 (diff) | |
download | frr-b7fb24ce6f9b53d70c3cb8f00ea1f85ea0ea905c.tar.xz frr-b7fb24ce6f9b53d70c3cb8f00ea1f85ea0ea905c.zip |
lib: Add thread_execute_name
Allow the user to specify a run name for display in
'show thread cpu' that is different than the function
name we are calling.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.h')
-rw-r--r-- | lib/thread.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h index 01ff4daf4..70090cf78 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -170,6 +170,8 @@ struct cpu_thread_history { #define thread_add_timer_tv(m,f,a,v,t) funcname_thread_add_timer_tv(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_add_event(m,f,a,v,t) funcname_thread_add_event(m,f,a,v,t,#f,__FILE__,__LINE__) #define thread_execute(m,f,a,v) funcname_thread_execute(m,f,a,v,#f,__FILE__,__LINE__) +#define thread_execute_name(m, f, a, v, n) \ + funcname_thread_execute(m, f, a, v, n, __FILE__, __LINE__) /* Prototypes. */ extern struct thread_master *thread_master_create(const char *); |