summaryrefslogtreecommitdiffstats
path: root/lib/wheel.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-11-30 01:36:26 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-13 16:51:13 +0200
commitc2cfa843b42d30b8d589d507e5b41f6fac704384 (patch)
tree98e30c211a1d02c86059afc44fe5e8d06d4c6392 /lib/wheel.h
parentlib: Add thread_execute_name (diff)
downloadfrr-c2cfa843b42d30b8d589d507e5b41f6fac704384.tar.xz
frr-c2cfa843b42d30b8d589d507e5b41f6fac704384.zip
lib, pimd: Convert timer_wheel to use thread_execute_name
Allow at timer wheel creation time the ability to specify a name for what we want the 'show thread cpu' to show up as. Modify pim to note this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/wheel.h')
-rw-r--r--lib/wheel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/wheel.h b/lib/wheel.h
index 1f9f95ed3..c8e83fafc 100644
--- a/lib/wheel.h
+++ b/lib/wheel.h
@@ -21,6 +21,7 @@
#define __WHEEL_H__
struct timer_wheel {
+ char *name;
struct thread_master *master;
int slots;
long long curr_slot;
@@ -76,7 +77,8 @@ struct timer_wheel {
*/
struct timer_wheel *wheel_init(struct thread_master *master, int period,
size_t slots, unsigned int (*slot_key)(void *),
- void (*slot_run)(void *));
+ void (*slot_run)(void *),
+ const char *run_name);
/*
* Delete the specified timer wheel created