|
EM-ODP
3.7.0
Event Machine on ODP
|
Go to the documentation of this file.
30 #ifndef EVENT_MACHINE_TIMER_H_
31 #define EVENT_MACHINE_TIMER_H_
33 #pragma GCC visibility push(default)
186 #include <inttypes.h>
196 #define EM_TIMER_API_VERSION_MAJOR EM_API_VERSION_MAJOR
201 #define EM_TIMER_API_VERSION_MINOR EM_API_VERSION_MINOR
241 EM_TMO_STATE_UNKNOWN = 0,
1128 #pragma GCC visibility pop
em_status_t em_timer_ring_capability(em_timer_ring_param_t *ring)
Check periodic ring timer capability.
em_status_t em_tmo_set_abs(em_tmo_t tmo, em_timer_tick_t ticks_abs, em_event_t tmo_ev)
em_timer_tick_t em_timer_current_tick(em_timer_t tmr)
struct em_tmo_args_t em_tmo_args_t
struct em_timer_capability_t em_timer_capability_t
em_timer_res_param_t resparam
em_tmo_t em_tmo_create_arg(em_timer_t tmr, em_tmo_flag_t flags, em_queue_t queue, em_tmo_args_t *args)
em_status_t em_tmo_set_rel(em_tmo_t tmo, em_timer_tick_t ticks_rel, em_event_t tmo_ev)
em_status_t em_tmo_delete(em_tmo_t tmo, em_event_t *cur_event)
uint64_t em_timer_tick_to_ns(em_timer_t tmr, em_timer_tick_t ticks)
em_tmo_state_t em_tmo_get_state(em_tmo_t tmo)
em_timer_res_param_t max_res
em_timer_ring_param_t ringparam
uint64_t num_period_skips
em_status_t em_tmo_ack(em_tmo_t tmo, em_event_t next_tmo_ev)
em_status_t em_timer_capability(em_timer_capability_t *capa, em_timer_clksrc_t clk_src)
em_status_t em_timer_get_attr(em_timer_t tmr, em_timer_attr_t *tmr_attr)
em_status_t em_timer_delete(em_timer_t tmr)
struct em_timer_attr_t em_timer_attr_t
char name[EM_TIMER_NAME_LEN]
em_timer_t em_timer_ring_create(const em_timer_attr_t *ring_attr)
em_fract_u64_t max_base_hz
em_tmo_t em_tmo_create(em_timer_t tmr, em_tmo_flag_t flags, em_queue_t queue)
struct em_timer_capability_t::@2 ring
void * em_tmo_get_userptr(em_event_t event, em_tmo_t *tmo)
em_timer_clksrc_t clk_src
em_status_t em_timer_res_capability(em_timer_res_param_t *res, em_timer_clksrc_t clk_src)
struct em_timer_ring_param_t em_timer_ring_param_t
void em_timer_attr_init(em_timer_attr_t *tmr_attr)
em_timer_res_param_t max_tmo
em_status_t em_tmo_set_periodic(em_tmo_t tmo, em_timer_tick_t start_abs, em_timer_tick_t period, em_event_t tmo_ev)
em_tmo_type_t em_tmo_get_type(em_event_t event, em_tmo_t *tmo, bool reset)
struct em_fract_u64_t em_fract_u64_t
struct em_timer_res_param_t em_timer_res_param_t
em_timer_t em_tmo_get_timer(em_tmo_t tmo)
int em_timer_get_all(em_timer_t *tmr_list, int max)
em_status_t em_timer_ring_attr_init(em_timer_attr_t *ring_attr, em_timer_clksrc_t clk_src, uint64_t base_hz, uint64_t max_mul, uint64_t res_ns)
uint64_t em_timer_to_u64(em_timer_t timer)
uint64_t em_timer_get_freq(em_timer_t tmr)
em_timer_tick_t em_timer_ns_to_tick(em_timer_t tmr, uint64_t ns)
em_status_t em_tmo_set_periodic_ring(em_tmo_t tmo, em_timer_tick_t start_abs, uint64_t multiplier, em_event_t tmo_ev)
em_status_t em_tmo_get_stats(em_tmo_t tmo, em_tmo_stats_t *stat)
em_fract_u64_t min_base_hz
em_timer_t em_timer_create(const em_timer_attr_t *tmr_attr)
uint32_t __internal_check
struct em_tmo_stats_t em_tmo_stats_t
em_timer_clksrc_t clk_src
uint64_t em_tmo_to_u64(em_tmo_t tmo)
em_status_t em_tmo_cancel(em_tmo_t tmo, em_event_t *cur_event)