diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-31 16:17:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-31 16:17:02 +0000 |
commit | e6e75e20f76c6302bcb4fc3572c00873a464283f (patch) | |
tree | 194fe84b40c35edfaada406f29da8eaf46cc9769 /testsuites/psxtests/psx12/task.c | |
parent | 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-e6e75e20f76c6302bcb4fc3572c00873a464283f.tar.bz2 |
2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1867/cpukit
* Makefile.am, configure.ac, psx12/task.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.
* psx16/.cvsignore, psx16/Makefile.am, psx16/init.c, psx16/psx16.doc,
psx16/psx16.scn: New files.
Diffstat (limited to 'testsuites/psxtests/psx12/task.c')
-rw-r--r-- | testsuites/psxtests/psx12/task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx12/task.c b/testsuites/psxtests/psx12/task.c index 67e5a68e40..1d3804da4f 100644 --- a/testsuites/psxtests/psx12/task.c +++ b/testsuites/psxtests/psx12/task.c @@ -26,6 +26,11 @@ void *Task_1( void *argument ) { + /* + * Detach ourselves so we don't wait for a join that won't happen. + */ + pthread_detach( pthread_self() ); + puts( "Task_1: exitting" ); pthread_exit( NULL ); |