APM:Libraries
|
#include <Thread.h>
Classes | |
struct | stack_debug |
Public Member Functions | |
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) |
virtual bool | stop () |
bool | join () |
Protected Member Functions | |
virtual bool | _run () |
void | _poison_stack () |
Static Protected Member Functions | |
static void * | _run_trampoline (void *arg) |
Protected Attributes | |
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 |
|
inlinevirtual |
|
protected |
Definition at line 76 of file Thread.cpp.
Referenced by _run_trampoline(), and stop().
|
protectedvirtual |
Reimplemented in Linux::PeriodicThread, Linux::Scheduler::SchedulerThread, and TestThread1.
Definition at line 46 of file Thread.cpp.
Referenced by _run_trampoline(), Linux::PeriodicThread::PeriodicThread(), and stop().
|
staticprotected |
Definition at line 37 of file Thread.cpp.
Referenced by start(), and stop().
Linux::Thread::FUNCTOR_TYPEDEF | ( | task_t | , |
void | |||
) |
size_t Linux::Thread::get_stack_usage | ( | ) |
Definition at line 126 of file Thread.cpp.
Referenced by Linux::Scheduler::_debug_stack(), and is_started().
bool Linux::Thread::is_current_thread | ( | ) |
Definition at line 203 of file Thread.cpp.
Referenced by ~Thread().
|
inline |
Definition at line 42 of file Thread.h.
Referenced by Linux::SPIDevice::register_periodic_callback(), Linux::I2CDevice::register_periodic_callback(), Linux::PeriodicThread::stop(), and TEST().
bool Linux::Thread::join | ( | ) |
Definition at line 208 of file Thread.cpp.
Referenced by stop(), Linux::Scheduler::teardown(), and TEST().
bool Linux::Thread::set_stack_size | ( | size_t | stack_size | ) |
Definition at line 236 of file Thread.cpp.
Referenced by is_started(), Linux::SPIDevice::register_periodic_callback(), and Linux::I2CDevice::register_periodic_callback().
bool Linux::Thread::start | ( | const char * | name, |
int | policy, | ||
int | prio | ||
) |
Definition at line 155 of file Thread.cpp.
Referenced by Linux::SPIDevice::register_periodic_callback(), Linux::I2CDevice::register_periodic_callback(), TEST(), and ~Thread().
|
inlinevirtual |
Reimplemented in Linux::PeriodicThread, and Linux::PollerThread.
Definition at line 48 of file Thread.h.
Referenced by Linux::PeriodicThread::PeriodicThread().
|
protected |
Definition at line 67 of file Thread.h.
Referenced by _poison_stack(), is_current_thread(), join(), and start().
|
protected |
Definition at line 66 of file Thread.h.
Referenced by Linux::PeriodicThread::_run(), and Linux::PeriodicThread::stop().
|
protected |
Referenced by _poison_stack(), and get_stack_usage().
|
protected |
Definition at line 74 of file Thread.h.
Referenced by set_stack_size(), and start().
|
protected |
Definition at line 65 of file Thread.h.
Referenced by Linux::PeriodicThread::_run(), is_started(), Linux::PeriodicThread::set_rate(), set_stack_size(), and start().
|
protected |
Definition at line 64 of file Thread.h.
Referenced by _run(), and Linux::PeriodicThread::_run().