nonlib/Thread: Don't clear _thread in exit(), because join() will need it later.

Closes: #134
This commit is contained in:
Jonathan Moore Liles 2015-02-14 15:45:12 -08:00
parent e230929a57
commit 7934a71c70
1 changed files with 3 additions and 1 deletions

View File

@ -124,9 +124,11 @@ Thread::join ( void )
_thread = 0; _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 void
Thread::exit ( void *retval ) Thread::exit ( void *retval )
{ {
_thread = 0;
pthread_exit( retval ); pthread_exit( retval );
} }