From 9555341f0fc309243e1d92f95e4278a7b820f485 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 6 Apr 2016 16:26:22 +0200 Subject: posix: Use a dedicated lock for scheduler changes Update #2555. --- cpukit/posix/include/rtems/posix/threadsup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit/posix/include/rtems/posix/threadsup.h') diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index 7cd235409c..93ba2c1c7c 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -19,6 +19,7 @@ #define _RTEMS_POSIX_THREADSUP_H #include +#include #include #include #include @@ -51,6 +52,8 @@ typedef struct { /** This is the set of threads waiting for the thread to exit. */ Thread_queue_Control Join_List; /** This is the thread's current scheduling policy. */ + ISR_LOCK_MEMBER( Scheduler_lock ) + /** This is the thread's current scheduling policy. */ int schedpolicy; /** This is the thread's current set of scheduling parameters. */ struct sched_param schedparam; -- cgit v1.2.3