122 void join() {pthread_join(thread, 0);}
147 bool is_caller() {
return pthread_equal(thread, pthread_self());}
209 #ifdef CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT
306 std::auto_ptr<Cgu::Thread::Thread> thread_a;
473 JoinableHandle(std::auto_ptr<Cgu::Thread::Thread> thread,
Action act): action(act), detached(false), thread_a(thread) {}
592 static int block(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old_state);}
620 static int unblock(
int& old_state) {
return pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old_state);}
648 int restore(
int& old_state) {
return pthread_setcancelstate(starting_state, &old_state);}