Browse Source

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

Closes: #134
tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
7934a71c70
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nonlib/Thread.C

+ 3
- 1
nonlib/Thread.C View File

@@ -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…
Cancel
Save