29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
31#include <mstdlib/io/m_io.h>
193struct M_event_trigger;
enum M_event_err M_event_err_t
Definition: m_event.h:704
enum M_event_timer_modes M_event_timer_mode_t
Definition: m_event.h:573
M_bool M_event_timer_set_autoremove(M_event_timer_t *timer, M_bool enabled)
M_bool M_event_timer_adjust(M_event_timer_t *timer, M_uint64 interval_ms)
M_bool M_event_timer_start(M_event_timer_t *timer, M_uint64 interval_ms)
M_event_status_t M_event_get_status(M_event_t *event)
M_event_err
Definition: m_event.h:694
void M_event_return(M_event_t *event)
M_event_timer_modes
Definition: m_event.h:562
M_event_t * M_event_pool_create(size_t max_threads)
void(* M_event_callback_t)(M_event_t *event, M_event_type_t type, M_io_t *io, void *cb_arg)
Definition: m_event.h:227
M_bool M_event_timer_remove(M_event_timer_t *timer)
M_event_trigger_t * M_event_trigger_add(M_event_t *event, M_event_callback_t callback, void *cb_data)
M_event_timer_t * M_event_timer_add(M_event_t *event, M_event_callback_t callback, void *cb_data)
void M_event_trigger_remove(M_event_trigger_t *trigger)
struct M_event_trigger M_event_trigger_t
Definition: m_event.h:196
M_event_type
Definition: m_event.h:172
void M_event_destroy(M_event_t *event)
M_event_timer_t * M_event_timer_oneshot(M_event_t *event, M_uint64 interval_ms, M_bool autoremove, M_event_callback_t callback, void *cb_data)
enum M_event_type M_event_type_t
Definition: m_event.h:189
M_uint64 M_event_timer_get_interval_ms(M_event_timer_t *timer)
M_event_t * M_io_get_event(M_io_t *io)
M_EVENT_FLAGS
Definition: m_event.h:231
struct M_event M_event_t
Definition: m_event.h:210
M_bool M_event_add(M_event_t *event, M_io_t *io, M_event_callback_t callback, void *cb_data)
M_bool M_event_timer_stop(M_event_timer_t *timer)
M_event_statistic_t
Definition: m_event.h:250
M_uint64 M_event_timer_get_remaining_ms(M_event_timer_t *timer)
M_bool M_event_timer_edit_cb(M_event_timer_t *timer, M_event_callback_t callback, void *cb_data)
void M_event_done(M_event_t *event)
M_event_t * M_event_get_pool(M_event_t *event)
M_bool M_event_timer_set_firecount(M_event_timer_t *timer, size_t cnt)
void M_event_remove(M_io_t *io)
size_t M_event_num_objects(M_event_t *event)
M_bool M_event_timer_set_mode(M_event_timer_t *timer, M_event_timer_mode_t mode)
M_bool M_event_timer_set_endtv(M_event_timer_t *timer, M_timeval_t *end_tv)
M_event_err_t M_event_loop(M_event_t *event, M_uint64 timeout_ms)
M_bool M_event_timer_get_status(M_event_timer_t *timer)
M_bool M_event_edit_io_cb(M_io_t *io, M_event_callback_t callback, void *cb_data)
M_bool M_event_timer_set_starttv(M_event_timer_t *timer, M_timeval_t *start_tv)
M_bool M_event_trigger_edit_cb(M_event_trigger_t *trigger, M_event_callback_t callback, void *cb_data)
M_event_callback_t M_event_get_io_cb(M_io_t *io, void **cb_data_out)
M_event_status
Definition: m_event.h:681
M_bool M_event_queue_task(M_event_t *event, M_event_callback_t callback, void *cb_data)
const char * M_event_type_string(M_event_type_t type)
M_event_t * M_event_create(M_uint32 flags)
void M_event_done_with_disconnect(M_event_t *event, M_uint64 timeout_before_disconnect_ms, M_uint64 disconnect_timeout_ms)
enum M_event_status M_event_status_t
Definition: m_event.h:690
struct M_event_timer M_event_timer_t
Definition: m_event.h:203
M_uint64 M_event_get_statistic(M_event_t *event, M_event_statistic_t type)
void M_event_trigger_signal(M_event_trigger_t *trigger)
M_bool M_event_timer_reset(M_event_timer_t *timer, M_uint64 interval_ms)
@ M_EVENT_ERR_TIMEOUT
Definition: m_event.h:698
@ M_EVENT_ERR_RETURN
Definition: m_event.h:699
@ M_EVENT_ERR_MISUSE
Definition: m_event.h:700
@ M_EVENT_ERR_DONE
Definition: m_event.h:695
@ M_EVENT_TIMER_MODE_MONOTONIC
Definition: m_event.h:564
@ M_EVENT_TIMER_MODE_RELATIVE
Definition: m_event.h:563
@ M_EVENT_TYPE_WRITE
Definition: m_event.h:184
@ M_EVENT_TYPE_ACCEPT
Definition: m_event.h:174
@ M_EVENT_TYPE_DISCONNECTED
Definition: m_event.h:176
@ M_EVENT_TYPE_OTHER
Definition: m_event.h:185
@ M_EVENT_TYPE_READ
Definition: m_event.h:175
@ M_EVENT_TYPE_CONNECTED
Definition: m_event.h:173
@ M_EVENT_TYPE_ERROR
Definition: m_event.h:181
@ M_EVENT_FLAG_EXITONEMPTY
Definition: m_event.h:236
@ M_EVENT_FLAG_NOWAKE
Definition: m_event.h:233
@ M_EVENT_FLAG_NON_SCALABLE
Definition: m_event.h:238
@ M_EVENT_FLAG_NONE
Definition: m_event.h:232
@ M_EVENT_FLAG_EXITONEMPTY_NOTIMERS
Definition: m_event.h:237
@ M_EVENT_STATISTIC_SOFTEVENT_COUNT
Definition: m_event.h:253
@ M_EVENT_STATISTIC_TIMER_COUNT
Definition: m_event.h:254
@ M_EVENT_STATISTIC_WAKE_COUNT
Definition: m_event.h:251
@ M_EVENT_STATISTIC_PROCESS_TIME_MS
Definition: m_event.h:255
@ M_EVENT_STATISTIC_OSEVENT_COUNT
Definition: m_event.h:252
@ M_EVENT_STATUS_RETURN
Definition: m_event.h:684
@ M_EVENT_STATUS_PAUSED
Definition: m_event.h:683
@ M_EVENT_STATUS_DONE
Definition: m_event.h:685
@ M_EVENT_STATUS_RUNNING
Definition: m_event.h:682
struct M_io M_io_t
Definition: m_io.h:59