Home --> Documentations --> PJLIB Reference
Go to the documentation of this file.
28#if PJ_TIMER_USE_LINKED_LIST
94#if !PJ_TIMER_USE_COPY && PJ_TIMER_USE_LINKED_LIST
129#if !PJ_TIMER_USE_COPY
143 const char *src_file;
249# define pj_timer_heap_schedule(ht,e,d) \
250 pj_timer_heap_schedule_dbg(ht,e,d,__FILE__,__LINE__)
255 const char *src_file,
279# define pj_timer_heap_schedule_w_grp_lock(ht,e,d,id,g) \
280 pj_timer_heap_schedule_w_grp_lock_dbg(ht,e,d,id,g,__FILE__,__LINE__)
282 PJ_DECL( pj_status_t) pj_timer_heap_schedule_w_grp_lock_dbg(
288 const char *src_file,
int pj_bool_t Definition: types.h:71
struct pj_lock_t pj_lock_t Definition: types.h:239
size_t pj_size_t Definition: types.h:58
int pj_status_t Definition: types.h:68
struct pj_grp_lock_t pj_grp_lock_t Definition: types.h:242
struct pj_timer_heap_t pj_timer_heap_t Definition: types.h:221
#define PJ_DECL_LIST_MEMBER(type) Definition: list.h:61
pj_size_t pj_timer_heap_count(pj_timer_heap_t *ht)
void pj_timer_heap_callback(pj_timer_heap_t *timer_heap, struct pj_timer_entry *entry) Definition: timer.h:85
pj_status_t pj_timer_heap_schedule_w_grp_lock(pj_timer_heap_t *ht, pj_timer_entry *entry, const pj_time_val *delay, int id_val, pj_grp_lock_t *grp_lock)
int pj_timer_heap_cancel_if_active(pj_timer_heap_t *ht, pj_timer_entry *entry, int id_val)
int pj_timer_heap_cancel(pj_timer_heap_t *ht, pj_timer_entry *entry)
unsigned pj_timer_heap_poll(pj_timer_heap_t *ht, pj_time_val *next_delay)
pj_status_t pj_timer_heap_earliest_time(pj_timer_heap_t *ht, pj_time_val *timeval)
void pj_timer_heap_destroy(pj_timer_heap_t *ht)
pj_status_t pj_timer_heap_schedule(pj_timer_heap_t *ht, pj_timer_entry *entry, const pj_time_val *delay)
int pj_timer_id_t Definition: timer.h:71
pj_timer_entry * pj_timer_entry_init(pj_timer_entry *entry, int id, void *user_data, pj_timer_heap_callback *cb)
pj_size_t pj_timer_heap_mem_size(pj_size_t count)
pj_status_t pj_timer_heap_create(pj_pool_t *pool, pj_size_t count, pj_timer_heap_t **ht)
pj_bool_t pj_timer_entry_running(pj_timer_entry *entry)
void pj_timer_heap_set_lock(pj_timer_heap_t *ht, pj_lock_t *lock, pj_bool_t auto_del)
unsigned pj_timer_heap_set_max_timed_out_per_poll(pj_timer_heap_t *ht, unsigned count)
#define PJ_BEGIN_DECL Definition: config.h:1284
#define PJ_END_DECL Definition: config.h:1285
Linked List data structure.
Higher abstraction for locking objects.
pj_timer_heap_callback * cb Definition: timer.h:118
pj_timer_id_t _timer_id Definition: timer.h:127
pj_time_val _timer_value Definition: timer.h:134
int id Definition: timer.h:113
void * user_data Definition: timer.h:106
pj_grp_lock_t * _grp_lock Definition: timer.h:140
Declaration of basic types and utility.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|