BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

timer.h File Reference

Timer Heap. More...

Go to the source code of this file.

Data Structures

struct  pj_timer_entry
 

Typedefs

typedef int pj_timer_id_t
 
typedef void pj_timer_heap_callback(pj_timer_heap_t *timer_heap, struct pj_timer_entry *entry)
 

Functions

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)
 
void pj_timer_heap_destroy (pj_timer_heap_t *ht)
 
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)
 
pj_timer_entrypj_timer_entry_init (pj_timer_entry *entry, int id, void *user_data, pj_timer_heap_callback *cb)
 
pj_bool_t pj_timer_entry_running (pj_timer_entry *entry)
 
pj_status_t pj_timer_heap_schedule (pj_timer_heap_t *ht, pj_timer_entry *entry, const pj_time_val *delay)
 
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 (pj_timer_heap_t *ht, pj_timer_entry *entry)
 
int pj_timer_heap_cancel_if_active (pj_timer_heap_t *ht, pj_timer_entry *entry, int id_val)
 
pj_size_t pj_timer_heap_count (pj_timer_heap_t *ht)
 
pj_status_t pj_timer_heap_earliest_time (pj_timer_heap_t *ht, pj_time_val *timeval)
 
unsigned pj_timer_heap_poll (pj_timer_heap_t *ht, pj_time_val *next_delay)
 

Detailed Description

Timer Heap.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.