summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-23 15:25:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-23 21:42:13 +0200
commitf32935335a7f9b53c14133724753045ead988ca4 (patch)
tree168cad23909e4c7920bf798aa5f05f4718ad76c5 /cpukit/posix
parentsp13/system.h: Account for all message buffers (diff)
downloadrtems-f32935335a7f9b53c14133724753045ead988ca4.tar.bz2
score: Fix POSIX thread join
A thread join is twofold. There is one thread that exists and an arbitrary number of threads that wait for the thread exit (one-to-many relation). The exiting thread may want to wait for a thread that wants to join its exit (STATES_WAITING_FOR_JOIN_AT_EXIT in _POSIX_Thread_Exit()). On the other side we need a thread queue for all the threads that wait for the exit of one particular thread (STATES_WAITING_FOR_JOIN in pthread_join()). Update #2035.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/pthreadjoin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadjoin.c b/cpukit/posix/src/pthreadjoin.c
index 99cc4d3be8..e2b1664b0b 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -71,7 +71,7 @@ on_EINTR:
_Thread_queue_Enqueue(
&api->Join_List,
executing,
- STATES_WAITING_FOR_JOIN_AT_EXIT | STATES_INTERRUPTIBLE_BY_SIGNAL,
+ STATES_WAITING_FOR_JOIN | STATES_INTERRUPTIBLE_BY_SIGNAL,
WATCHDOG_NO_TIMEOUT
);
}