197 void join() {pthread_join(thread, 0);}
222 bool is_caller() {
return pthread_equal(thread, pthread_self());}
280 #ifdef CGU_USE_AUTO_PTR
288 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT
385 std::unique_ptr<Cgu::Thread::Thread> thread;
494 #ifdef CGU_USE_AUTO_PTR
547 #ifdef CGU_USE_AUTO_PTR
548 JoinableHandle(std::auto_ptr<Cgu::Thread::Thread> thr,
Action act): action(act), detached(false), thread(thr.release()) {}
550 JoinableHandle(std::unique_ptr<Cgu::Thread::Thread> thr,
Action act): action(act), detached(false), thread(std::move(thr)) {}
582 #ifdef CGU_USE_AUTO_PTR
653 static int block(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_state);}
679 static int unblock(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old_state);}
703 int restore(
int& old_state) {
return pthread_setcancelstate(starting_state, &old_state);}