diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-03-07 14:14:41 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 |
| commit | cd9d0537411d0a74cd19ae36f6d3716c8ccbb4c1 (patch) | |
| tree | f97009b8971d71b4c05cbc0d00b98608efd40e44 /lib/wheel.h | |
| parent | ce50d11c4d89304825b614d63fe6d7bd8ad2d517 (diff) | |
*: Convert `struct event_master` to `struct event_loop`
Let's find a better name for it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/wheel.h')
| -rw-r--r-- | lib/wheel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wheel.h b/lib/wheel.h index 8b4a831157..0d9ac10020 100644 --- a/lib/wheel.h +++ b/lib/wheel.h @@ -13,7 +13,7 @@ extern "C" { struct timer_wheel { char *name; - struct event_master *master; + struct event_loop *master; int slots; long long curr_slot; unsigned int period; @@ -66,7 +66,7 @@ struct timer_wheel { * and cause significant amount of time handling thread events instead * of running your code. */ -struct timer_wheel *wheel_init(struct event_master *master, int period, +struct timer_wheel *wheel_init(struct event_loop *master, int period, size_t slots, unsigned int (*slot_key)(const void *), void (*slot_run)(void *), const char *run_name); |
