summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor/mon-prmisc.c
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/libmisc/monitor/mon-prmisc.c
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 '')
-rw-r--r--cpukit/libmisc/monitor/mon-prmisc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c
index ff54d7946c..9140f927f6 100644
--- a/cpukit/libmisc/monitor/mon-prmisc.c
+++ b/cpukit/libmisc/monitor/mon-prmisc.c
@@ -127,6 +127,7 @@ static const rtems_assoc_t rtems_monitor_state_assoc[] = {
{ "Wmutex", STATES_WAITING_FOR_MUTEX, 0 },
{ "Wcvar", STATES_WAITING_FOR_CONDITION_VARIABLE, 0 },
{ "Wjatx", STATES_WAITING_FOR_JOIN_AT_EXIT, 0 },
+ { "Wjoin", STATES_WAITING_FOR_JOIN, 0 },
{ "Wrpc", STATES_WAITING_FOR_RPC_REPLY, 0 },
{ "WRATE", STATES_WAITING_FOR_PERIOD, 0 },
{ "Wsig", STATES_WAITING_FOR_SIGNAL, 0 },