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)();
u_result join(unsigned long timeout=-1)
static Thread create(thread_proc_t proc, void *data=NULL)
static _word_size_t THREAD_PROC _thread_thunk(void *data)
static Thread create_member(T *pthis)
u_result setPriority(priority_val_t p)
bool operator==(const Thread &right)
priority_val_t getPriority()
typedef _word_size_t(THREAD_PROC *thread_proc_t)(void *)
Thread(thread_proc_t proc, void *data)
GLsizei GLsizei GLenum GLenum const GLvoid * data