summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadjoin.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-08 10:47:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-08 11:20:40 +0100
commited24ed4e0ad3494bfa4d070c52fb2c24fb0fb784 (patch)
tree14884c89f2f2ba788e900140432ce8c6648b2df2 /cpukit/posix/src/pthreadjoin.c
parentrtems: Use _Per_CPU_Get_executing() (diff)
downloadrtems-ed24ed4e0ad3494bfa4d070c52fb2c24fb0fb784.tar.bz2
Use _Thread_Dispatch_direct()
Use _Thread_Dispatch_direct() for operations that block the executing thread. This ensures that we get a fatal error (INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL) if we try to block in an invalid context, e.g. during system start or an interrupt handler.
Diffstat (limited to 'cpukit/posix/src/pthreadjoin.c')
-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 ce4bf0d049..3fc52d7c1f 100644
--- a/cpukit/posix/src/pthreadjoin.c
+++ b/cpukit/posix/src/pthreadjoin.c
@@ -72,7 +72,7 @@ static int _POSIX_Threads_Join( pthread_t thread, void **value_ptr )
&queue_context.Lock_context.Lock_context
);
_Thread_State_release( the_thread, &queue_context.Lock_context.Lock_context );
- _Thread_Dispatch_enable( cpu_self );
+ _Thread_Dispatch_direct( cpu_self );
} else {
_Thread_Join(
the_thread,