Keeping track of the timeouts. More...
#include <timer.h>
Classes | |
class | TimeoutEntry |
Public Member Functions | |
unsigned | alloc (DATA volatile *_data=0) |
Alloc a new timeout object. | |
unsigned | dealloc (unsigned nr, bool withcancel=false) |
Dealloc a timeout object. | |
int | cancel (unsigned nr) |
Cancel a programmed timeout. | |
int | request (unsigned nr, timevalue to) |
Request a new timeout. | |
unsigned | trigger (timevalue now, DATA volatile **data=0) |
Get the head of the queue. | |
timevalue | timeout () |
void | init () |
Keeping track of the timeouts.
unsigned TimeoutList< ENTRIES, DATA >::alloc | ( | DATA volatile * | _data = 0 |
) | [inline] |
Alloc a new timeout object.
int TimeoutList< ENTRIES, DATA >::cancel | ( | unsigned | nr | ) | [inline] |
Cancel a programmed timeout.
unsigned TimeoutList< ENTRIES, DATA >::dealloc | ( | unsigned | nr, | |
bool | withcancel = false | |||
) | [inline] |
Dealloc a timeout object.
void TimeoutList< ENTRIES, DATA >::init | ( | ) | [inline] |
int TimeoutList< ENTRIES, DATA >::request | ( | unsigned | nr, | |
timevalue | to | |||
) | [inline] |
Request a new timeout.
timevalue TimeoutList< ENTRIES, DATA >::timeout | ( | ) | [inline] |
unsigned TimeoutList< ENTRIES, DATA >::trigger | ( | timevalue | now, | |
DATA volatile ** | data = 0 | |||
) | [inline] |
Get the head of the queue.