summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/scheduler.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-13 08:57:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-02 10:05:43 +0100
commit913864c0b85c9e94140515a44e79d13e999ff9a2 (patch)
tree2bca1b18a07972948290afee551bda967c452185 /cpukit/score/include/rtems/score/scheduler.h
parentscore: Yield support for new SMP helping protocol (diff)
downloadrtems-913864c0b85c9e94140515a44e79d13e999ff9a2.tar.bz2
score: Use scheduler instance specific locks
Update #2556.
Diffstat (limited to 'cpukit/score/include/rtems/score/scheduler.h')
-rw-r--r--cpukit/score/include/rtems/score/scheduler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h
index d13277ab53..07e415a57e 100644
--- a/cpukit/score/include/rtems/score/scheduler.h
+++ b/cpukit/score/include/rtems/score/scheduler.h
@@ -237,6 +237,11 @@ typedef struct {
* this structure at the begin of its context structure.
*/
typedef struct Scheduler_Context {
+ /**
+ * @brief Lock to protect this scheduler instance.
+ */
+ ISR_LOCK_MEMBER( Lock )
+
#if defined(RTEMS_SMP)
/**
* @brief Count of processors owned by this scheduler instance.