nonlib/Thread: Don't clear _thread in exit(), because join() will need it later.
Closes: #134
This commit is contained in:
parent
e230929a57
commit
7934a71c70
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue