|
APM:Libraries
|
#include <PollerThread.h>
Public Member Functions | |
| PollerThread () | |
| virtual | ~PollerThread () |
| TimerPollable * | add_timer (TimerPollable::PeriodicCb cb, TimerPollable::WrapperCb *wrapper, uint32_t timeout_usec) |
| bool | adjust_timer (TimerPollable *p, uint32_t timeout_usec) |
| void | mainloop () |
| bool | stop () override |
Public Member Functions inherited from Linux::Thread | |
| FUNCTOR_TYPEDEF (task_t, void) | |
| Thread (task_t t) | |
| virtual | ~Thread () |
| bool | start (const char *name, int policy, int prio) |
| bool | is_current_thread () |
| bool | is_started () const |
| size_t | get_stack_usage () |
| bool | set_stack_size (size_t stack_size) |
| bool | join () |
Protected Member Functions | |
| void | _cleanup_timers () |
Protected Member Functions inherited from Linux::Thread | |
| virtual bool | _run () |
| void | _poison_stack () |
Protected Attributes | |
| Poller | _poller {} |
| std::vector< TimerPollable * > | _timers {} |
Protected Attributes inherited from Linux::Thread | |
| task_t | _task |
| bool | _started = false |
| bool | _should_exit = false |
| pthread_t | _ctx = 0 |
| struct Linux::Thread::stack_debug | _stack_debug |
| size_t | _stack_size = 0 |
Additional Inherited Members | |
Static Protected Member Functions inherited from Linux::Thread | |
| static void * | _run_trampoline (void *arg) |
Definition at line 63 of file PollerThread.h.
|
inline |
|
inlinevirtual |
|
protected |
Definition at line 119 of file PollerThread.cpp.
| TimerPollable * Linux::PollerThread::add_timer | ( | TimerPollable::PeriodicCb | cb, |
| TimerPollable::WrapperCb * | wrapper, | ||
| uint32_t | timeout_usec | ||
| ) |
Definition at line 89 of file PollerThread.cpp.
Referenced by Linux::SPIDevice::register_periodic_callback(), and Linux::I2CDevice::register_periodic_callback().
| bool Linux::PollerThread::adjust_timer | ( | TimerPollable * | p, |
| uint32_t | timeout_usec | ||
| ) |
Definition at line 108 of file PollerThread.cpp.
Referenced by Linux::SPIDevice::adjust_periodic_callback(), and Linux::I2CDevice::adjust_periodic_callback().
| void Linux::PollerThread::mainloop | ( | ) |
Definition at line 135 of file PollerThread.cpp.
Referenced by PollerThread().
|
overridevirtual |
Reimplemented from Linux::Thread.
Definition at line 150 of file PollerThread.cpp.
Referenced by TEST().
|
protected |
Definition at line 80 of file PollerThread.h.
|
protected |
Definition at line 81 of file PollerThread.h.
1.8.13