From 5a32c486f9b7bd8687af253931b47d7abb091bc3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 14 Jun 2016 15:57:54 +0200 Subject: posix: Make POSIX API aware of scheduler instances --- cpukit/posix/src/pthread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/pthread.c') diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index ca7efa9c7d..b29acaeea5 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -37,8 +37,9 @@ #include #include #include -#include #include +#include +#include Thread_Information _POSIX_Threads_Information; @@ -182,6 +183,7 @@ static bool _POSIX_Threads_Create_extension( api->thread = created; _POSIX_Threads_Initialize_attributes( &api->Attributes ); api->Attributes.schedparam.sched_priority = _POSIX_Priority_From_core( + _Scheduler_Get_own( created ), created->current_priority ); -- cgit v1.2.3