221 void join() {pthread_join(thread, 0);}
246 bool is_caller() {
return pthread_equal(thread, pthread_self());}
309 #ifdef CGU_USE_AUTO_PTR
317 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT
412 std::unique_ptr<Cgu::Thread::Thread> thread;
521 #ifdef CGU_USE_AUTO_PTR
574 #ifdef CGU_USE_AUTO_PTR
575 JoinableHandle(std::auto_ptr<Cgu::Thread::Thread> thr,
Action act): action(act), detached(false), thread(thr.release()) {}
577 JoinableHandle(std::unique_ptr<Cgu::Thread::Thread> thr,
Action act): action(act), detached(false), thread(std::move(thr)) {}
609 #ifdef CGU_USE_AUTO_PTR
706 static int block(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_state);}
734 static int unblock(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old_state);}
760 int restore(
int& old_state) {
return pthread_setcancelstate(starting_state, &old_state);}