37 #define CLASS_THREAD(c, x) rp::hal::Thread::create_member<c, &c::x>(this) 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 Thread create(thread_proc_t proc, void *data=nullptr)
u_result join(unsigned long timeout=-1)
_word_size_t(THREAD_PROC * thread_proc_t)(void *)
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()
Thread(thread_proc_t proc, void *data)
GLsizei GLsizei GLenum GLenum const GLvoid * data