forked from Imagelibrary/rtems
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1867/cpukit * Makefile.am, configure.ac, psx12/task.c, psxkey03/init.c, psxrwlock01/test.c: Correct implementation of pthread_exit() and pthread_join() to support the case where a thread is joinable but calls pthread_exit() before a thread has attempted to join.
This commit is contained in:
@@ -32,6 +32,11 @@ void *Test_Thread(
|
||||
{
|
||||
int sc;
|
||||
|
||||
/*
|
||||
* Detach ourselves so we don't wait for a join that won't happen.
|
||||
*/
|
||||
pthread_detach( pthread_self() );
|
||||
|
||||
puts( "Test_Thread - pthread_setspecific - OK" );
|
||||
sc = pthread_setspecific( Key, key_value );
|
||||
rtems_test_assert( !sc );
|
||||
|
||||
Reference in New Issue
Block a user