yumapro  23.10T-6
YumaPro SDK
Loading...
Searching...
No Matches
agt_timer.h File Reference

Handle timer services for the server. More...

#include <time.h>
#include "dlq.h"
#include "status.h"
Include dependency graph for agt_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  agt_timer_cb_t
 Internal Timer control block, not for use outside agt_timer.c. More...
 

Typedefs

typedef int(* agt_timer_fn_t) (uint32 timer_id, void *cookie)
 timer callback function More...
 

Functions

void agt_timer_init (void)
 Initialize the agt_timer module. More...
 
void agt_timer_cleanup (void)
 Cleanup the agt_timer module. More...
 
void agt_timer_handler (void)
 Handle an incoming server timer polling interval. More...
 
status_t agt_timer_create (uint32 seconds, boolean is_periodic, agt_timer_fn_t timer_fn, void *cookie, uint32 *ret_timer_id)
 Malloc and start a new timer control block. More...
 
status_t agt_timer_restart (uint32 timer_id, uint32 seconds)
 Restart a timer with a new timeout value. More...
 
void agt_timer_delete (uint32 timer_id)
 Remove and delete a timer control block. More...
 
void agt_timer_get_timenow (time_t *tnow)
 Get the current time using the system or monotonic clock. More...
 
void agt_timer_get_centi_timenow (uint64 *tnow)
 Get the current time using the system or monotonic clock. More...
 

Detailed Description

Handle timer services for the server.