+ int res;
+ m_state.down(); /* this might block */
+ res = m_alive;
+ assert(m_state.value() == 0);
+ m_state.up();
+ return res; /* 0: thread is guaranteed not to run. 1: state unknown. */
+}
+
+int eThread::sendSignal(int sig)
+{
+ if (m_alive)
+ return pthread_kill(the_thread, sig);