diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-17 10:06:08 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-17 10:12:10 +0200 |
commit | 2fcea4c47325578d887d2c061a86e5e178d7a32a (patch) | |
tree | f779f8268a4a25365d4509ba082ab9f1204b2c2b /cpukit/posix/src/pthread.c | |
parent | score: Rename _Watchdog_Per_CPU_insert_monotonic() (diff) | |
download | rtems-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.c | 1 |
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; } |