libamxp  1.4.0
Patterns C Implementation
_amxp_timer Struct Reference

The timer type. More...

#include <amxp_timer.h>

Collaboration diagram for _amxp_timer:

Data Fields

amxc_llist_it_t it
 
struct itimerval timer
 
amxp_timer_state_t state
 
amxp_timer_cb_t cb
 
void * priv
 

Detailed Description

The timer type.

This structure defines a timer.

Definition at line 163 of file amxp_timer.h.

Field Documentation

◆ cb

amxp_timer_cb_t _amxp_timer::cb

The callback function, called when a timer expires

Definition at line 167 of file amxp_timer.h.

◆ it

amxc_llist_it_t _amxp_timer::it

Linked list iterator to put the tiomer in the global list of timers

Definition at line 164 of file amxp_timer.h.

◆ priv

void* _amxp_timer::priv

Some user specified private data, the timer doesn't take ownership of this pointer

Definition at line 168 of file amxp_timer.h.

◆ state

amxp_timer_state_t _amxp_timer::state

The timer state

Definition at line 166 of file amxp_timer.h.

◆ timer

struct itimerval _amxp_timer::timer

The timer interval, if not set the timer is a single shot timer

Definition at line 164 of file amxp_timer.h.


The documentation for this struct was generated from the following file: