Go to the source code of this file.
Functions | |
static MAYBE_ERROR_RTYPE | event_cb (Event *event MAYBE_ERROR_PARAM) |
static void * | worker_task (void *arg) |
void | timer_init (EventQueue *queue, Timer *timer) |
void | timer_at (Timer *timer, struct timespec *time, TimerCallback *callback, void *user_data) |
void | timer_cancel (Timer *timer) |
void | timer_close (Timer *timer) |
static MAYBE_ERROR_RTYPE event_cb | ( | Event *event | MAYBE_ERROR_PARAM | ) | [static] |
Definition at line 11 of file evq_timer.c.
References Timer::callback, MAYBE_ERROR_INVOKE, MAYBE_ERROR_RETURN, and Timer::user_data.
Referenced by timer_init().
void timer_at | ( | Timer * | timer, | |
struct timespec * | time, | |||
TimerCallback * | callback, | |||
void * | user_data | |||
) |
Definition at line 60 of file evq_timer.c.
References Timer::active, Timer::callback, Timer::cond, Timer::mutex, Timer::time, and Timer::user_data.
void timer_cancel | ( | Timer * | timer | ) |
Definition at line 72 of file evq_timer.c.
References Timer::active, Timer::cond, event_remove(), Timer::mutex, and Timer::queue.
Referenced by timer_close().
void timer_close | ( | Timer * | timer | ) |
Definition at line 84 of file evq_timer.c.
References Timer::cond, event_remove(), Timer::mutex, Timer::queue, Timer::running, timer_cancel(), and Timer::worker.
void timer_init | ( | EventQueue * | queue, | |
Timer * | timer | |||
) |
Definition at line 49 of file evq_timer.c.
References Timer::active, _Event::callback, Timer::cond, Timer::event, event_cb(), Timer::mutex, Timer::queue, Timer::running, Timer::worker, and worker_task().
static void* worker_task | ( | void * | arg | ) | [static] |
Definition at line 18 of file evq_timer.c.
References Timer::active, Timer::cond, error(), event_put(), Timer::mutex, Timer::queue, Timer::running, and Timer::time.
Referenced by timer_init().
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:58 2011 by Doxygen 1.6.1