#include <thread.h>
Public Types | |
enum | priority_val_t { PRIORITY_REALTIME = 0, PRIORITY_HIGH = 1, PRIORITY_NORMAL = 2, PRIORITY_LOW = 3, PRIORITY_IDLE = 4 } |
Public Member Functions | |
void * | getData () |
_word_size_t | getHandle () |
priority_val_t | getPriority () |
u_result | join (unsigned long timeout=-1) |
bool | operator== (const Thread &right) |
u_result | setPriority (priority_val_t p) |
u_result | terminate () |
Thread () | |
~Thread () | |
Static Public Member Functions | |
template<class T , u_result(T::*)(void) PROC> | |
static _word_size_t THREAD_PROC | _thread_thunk (void *data) |
static Thread | create (thread_proc_t proc, void *data=NULL) |
template<class T , u_result(T::*)(void) PROC> | |
static Thread | create_member (T *pthis) |
Protected Member Functions | |
Thread (thread_proc_t proc, void *data) | |
Protected Attributes | |
void * | _data |
thread_proc_t | _func |
_word_size_t | _handle |
rp::hal::Thread::~Thread | ( | ) | [inline] |
rp::hal::Thread::Thread | ( | ) | [inline] |
rp::hal::Thread::Thread | ( | thread_proc_t | proc, |
void * | data | ||
) | [inline, protected] |
static _word_size_t THREAD_PROC rp::hal::Thread::_thread_thunk | ( | void * | data | ) | [inline, static] |
Thread rp::hal::Thread::create | ( | thread_proc_t | proc, |
void * | data = NULL |
||
) | [static] |
Definition at line 43 of file thread.hpp.
static Thread rp::hal::Thread::create_member | ( | T * | pthis | ) | [inline, static] |
void* rp::hal::Thread::getData | ( | ) | [inline] |
_word_size_t rp::hal::Thread::getHandle | ( | ) | [inline] |
Definition at line 105 of file thread.hpp.
u_result rp::hal::Thread::join | ( | unsigned long | timeout = -1 | ) |
Definition at line 131 of file thread.hpp.
bool rp::hal::Thread::operator== | ( | const Thread & | right | ) | [inline] |
Definition at line 62 of file thread.hpp.
Definition at line 55 of file thread.hpp.
void* rp::hal::Thread::_data [protected] |
thread_proc_t rp::hal::Thread::_func [protected] |
_word_size_t rp::hal::Thread::_handle [protected] |