2 #include "../acl_cpp_define.hpp" 21 virtual void* run(
void) = 0;
31 template<
typename T>
class tbox;
49 bool start(
bool sync =
false);
58 bool wait(
void** out = NULL);
68 thread& set_detachable(
bool yes);
76 thread& set_stacksize(
size_t size);
82 unsigned long thread_id(
void)
const;
88 static unsigned long thread_self(
void);
89 static unsigned long self(void)
97 #if defined(_WIN32) || defined(_WIN64) 99 unsigned long thread_id_;
102 unsigned long thread_id_;
108 static void* thread_run(
void* arg);
110 void wait_for_running(
void);
virtual ~thread_job(void)