summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 10:06:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-17 10:12:10 +0200
commit2fcea4c47325578d887d2c061a86e5e178d7a32a (patch)
treef779f8268a4a25365d4509ba082ab9f1204b2c2b /cpukit/posix/src/pthread.c
parentscore: Rename _Watchdog_Per_CPU_insert_monotonic() (diff)
downloadrtems-2fcea4c47325578d887d2c061a86e5e178d7a32a.tar.bz2
posix: Fix _POSIX_Threads_Create_extension()
The thread POSIX API control must be fully initialized in _POSIX_Threads_Create_extension(), otherwise a pthread_setschedparam() is broken for all threads not created with pthread_create().
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index 30b830cd85..9d1c1ad012 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -151,6 +151,7 @@ static bool _POSIX_Threads_Create_extension(
_Watchdog_Preinitialize( &api->Sporadic.Timer, _Per_CPU_Get_by_index( 0 ) );
_Watchdog_Initialize( &api->Sporadic.Timer, _POSIX_Threads_Sporadic_timer );
+ _Priority_Node_set_inactive( &api->Sporadic.Low_priority );
return true;
}