#include <linux_hal_common.hpp>
Extends OSTimerQueue to Linux
| LinuxTimerQueue::LinuxTimerQueue |
( |
| ) |
|
|
inlineprotected |
| LinuxTimerQueue::~LinuxTimerQueue |
( |
| ) |
|
Deletes pre-allocated internal variables.
Add an event to the timer queue.
- Parameters
-
| micros | Time in microsseconds |
| type | Event type |
| func | Callback |
| arg | inner argument of type event_descriptor_t |
| rm | when true, allows elements to be deleted from the queue |
| event | [inout] Pointer to the event |
- Returns
- TRUE success, FALSE fail
Implements OSTimerQueue.
| bool LinuxTimerQueue::cancelEvent |
( |
int |
type, |
|
|
unsigned * |
event |
|
) |
| |
|
virtual |
Removes an event from the timer queue.
- Parameters
-
| type | Event type |
| event | [inout] Pointer to the event |
- Returns
- TRUE success, FALSE fail
Implements OSTimerQueue.
| virtual bool LinuxTimerQueue::init |
( |
| ) |
|
|
protectedvirtual |
Initializes internal variables.
- Returns
- TRUE if success, FALSE otherwise.
Reimplemented from OSTimerQueue.
| void* LinuxTimerQueueHandler |
( |
void * |
arg | ) |
|
|
friend |
Linux timer queue handler. Deals with linux queues.
- Parameters
-
- Returns
- void
The documentation for this class was generated from the following file: