diff --git a/nonlib/Thread.C b/nonlib/Thread.C index f0c6292..acee63f 100644 --- a/nonlib/Thread.C +++ b/nonlib/Thread.C @@ -124,9 +124,11 @@ Thread::join ( void ) _thread = 0; } +/* never call this unless some other thread will be calling 'join' on + * this one, otherwise, running() will return true even though the + * thread is dead */ void Thread::exit ( void *retval ) { - _thread = 0; pthread_exit( retval ); }