summaryrefslogtreecommitdiff
path: root/lib/wheel.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-07-11 16:03:38 -0400
committerMark Stapp <mjs@labn.net>2023-07-25 10:17:48 -0400
commitadca5c22c573f17b09b96a0994953c8f643fd301 (patch)
tree84894373c496a0279b3fc5eb944803c53bcb6c34 /lib/wheel.c
parent9e32b73634a8bbe893f2425ee89ee27651d93408 (diff)
* : include event ptr in event_execute api
Include an event ptr-to-ptr in the event_execute() api call, like the various schedule api calls. This allows the execute() api to cancel an existing scheduled task if that task is being executed inline. Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'lib/wheel.c')
-rw-r--r--lib/wheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wheel.c b/lib/wheel.c
index e17995c64a..2520e81d49 100644
--- a/lib/wheel.c
+++ b/lib/wheel.c
@@ -57,7 +57,7 @@ static void wheel_timer_thread(struct event *t)
wheel = EVENT_ARG(t);
- event_execute(wheel->master, wheel_timer_thread_helper, wheel, 0);
+ event_execute(wheel->master, wheel_timer_thread_helper, wheel, 0, NULL);
}
struct timer_wheel *wheel_init(struct event_loop *master, int period,