diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-05-20 20:19:08 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 13:32:17 +0100 |
commit | 907a2395f423e3b97335d554557c2cef7195db84 (patch) | |
tree | 18ea691bc5589fa570c739a9f221429633778ea9 /ospfd/ospf_ism.h | |
parent | *: Rename `struct thread` to `struct event` (diff) | |
download | frr-907a2395f423e3b97335d554557c2cef7195db84.tar.xz frr-907a2395f423e3b97335d554557c2cef7195db84.zip |
*: Convert thread_add_XXX functions to event_add_XXX
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_ism.h')
-rw-r--r-- | ospfd/ospf_ism.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ospfd/ospf_ism.h b/ospfd/ospf_ism.h index 4ae86a318..d5261546e 100644 --- a/ospfd/ospf_ism.h +++ b/ospfd/ospf_ism.h @@ -39,15 +39,15 @@ oi->on_write_q = 1; \ } \ if (!list_isempty((O)->oi_write_q)) \ - thread_add_write(master, ospf_write, (O), (O)->fd, \ - &(O)->t_write); \ + event_add_write(master, ospf_write, (O), (O)->fd, \ + &(O)->t_write); \ } while (0) /* Macro for OSPF ISM timer turn on. */ -#define OSPF_ISM_TIMER_ON(T, F, V) thread_add_timer(master, (F), oi, (V), &(T)) +#define OSPF_ISM_TIMER_ON(T, F, V) event_add_timer(master, (F), oi, (V), &(T)) #define OSPF_ISM_TIMER_MSEC_ON(T, F, V) \ - thread_add_timer_msec(master, (F), oi, (V), &(T)) + event_add_timer_msec(master, (F), oi, (V), &(T)) /* convenience macro to set hello timer correctly, according to * whether fast-hello is set or not @@ -65,7 +65,7 @@ /* Macro for OSPF schedule event. */ #define OSPF_ISM_EVENT_SCHEDULE(I, E) \ - thread_add_event(master, ospf_ism_event, (I), (E), NULL) + event_add_event(master, ospf_ism_event, (I), (E), NULL) /* Macro for OSPF execute event. */ #define OSPF_ISM_EVENT_EXECUTE(I, E) \ |