summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadjoin.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-22 15:20:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-23 12:54:03 +0200
commit07332ae4db821ad8a11b1eda6fbb5b453ef069ef (patch)
tree7397f3276cc6fb06170919854c91852bc0fb75b1 /cpukit/posix/src/pthreadjoin.c
parentFilesystem: Remove superfluous free() (diff)
downloadrtems-07332ae4db821ad8a11b1eda6fbb5b453ef069ef.tar.bz2
score: _Thread_queue_Enqueue_with_handler()
Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing.
Diffstat (limited to 'cpukit/posix/src/pthreadjoin.c')
-rw-r--r--cpukit/posix/src/pthreadjoin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthreadjoin.c b/cpukit/posix/src/pthreadjoin.c
index f7a9d459c2..6b562ecf41 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -71,7 +71,11 @@ on_EINTR:
} else {
executing->Wait.return_argument = &return_pointer;
_Thread_queue_Enter_critical_section( &api->Join_List );
- _Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT );
+ _Thread_queue_Enqueue(
+ &api->Join_List,
+ executing,
+ WATCHDOG_NO_TIMEOUT
+ );
}
_Objects_Put( &the_thread->Object );