38 #define CLASS_THREAD(c , x ) \ 39 rp::hal::Thread::create_member<c, &c::x>(this ) 41 namespace rp{
namespace hal{
55 template <
class T, u_result (T::*PROC)(
void)>
58 return create(_thread_thunk<T,PROC>, pthis);
61 template <
class T, u_result (T::*PROC)(
void) >
64 return (static_cast<T *>(data)->*PROC)();
static _word_size_t THREAD_PROC _thread_thunk(void *data)
static Thread create_member(T *pthis)
bool operator==(const Thread &right)
u_result join(unsigned long timeout=-1)
typedef _word_size_t(THREAD_PROC *thread_proc_t)(void *)
static Thread create(thread_proc_t proc, void *data=NULL)
Thread(thread_proc_t proc, void *data)
priority_val_t getPriority()
u_result setPriority(priority_val_t p)