mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 00:18:53 +00:00
Merge pull request #17329 from donaldsharp/wheel_name_is_useless
lib: Remove wheel name it is no longer used
This commit is contained in:
commit
23c92ed04f
13
lib/wheel.c
13
lib/wheel.c
@ -18,7 +18,7 @@ static int debug_timer_wheel = 0;
|
||||
|
||||
static void wheel_timer_thread(struct event *t);
|
||||
|
||||
static void wheel_timer_thread_helper(struct event *t)
|
||||
static void wheel_timer_thread(struct event *t)
|
||||
{
|
||||
struct listnode *node, *nextnode;
|
||||
unsigned long long curr_slot;
|
||||
@ -51,15 +51,6 @@ static void wheel_timer_thread_helper(struct event *t)
|
||||
wheel->nexttime * slots_to_skip, &wheel->timer);
|
||||
}
|
||||
|
||||
static void wheel_timer_thread(struct event *t)
|
||||
{
|
||||
struct timer_wheel *wheel;
|
||||
|
||||
wheel = EVENT_ARG(t);
|
||||
|
||||
event_execute(wheel->master, wheel_timer_thread_helper, wheel, 0, NULL);
|
||||
}
|
||||
|
||||
struct timer_wheel *wheel_init(struct event_loop *master, int period,
|
||||
size_t slots,
|
||||
unsigned int (*slot_key)(const void *),
|
||||
@ -70,7 +61,6 @@ struct timer_wheel *wheel_init(struct event_loop *master, int period,
|
||||
|
||||
wheel = XCALLOC(MTYPE_TIMER_WHEEL, sizeof(struct timer_wheel));
|
||||
|
||||
wheel->name = XSTRDUP(MTYPE_TIMER_WHEEL, run_name);
|
||||
wheel->slot_key = slot_key;
|
||||
wheel->slot_run = slot_run;
|
||||
|
||||
@ -101,7 +91,6 @@ void wheel_delete(struct timer_wheel *wheel)
|
||||
|
||||
EVENT_OFF(wheel->timer);
|
||||
XFREE(MTYPE_TIMER_WHEEL_LIST, wheel->wheel_slot_lists);
|
||||
XFREE(MTYPE_TIMER_WHEEL, wheel->name);
|
||||
XFREE(MTYPE_TIMER_WHEEL, wheel);
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
struct timer_wheel {
|
||||
char *name;
|
||||
struct event_loop *master;
|
||||
int slots;
|
||||
long long curr_slot;
|
||||
|
Loading…
Reference in New Issue
Block a user