diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-04 10:20:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-04 10:20:29 +0200 |
commit | ee0e41355d1faa5f74085effc4f57c3a7fc1f884 (patch) | |
tree | c845395523e084218ca6715977648b807d30605d /cpukit/score/include/rtems/score/schedulercbs.h | |
parent | score: Fix _Thread_queue_Path_release() (diff) | |
download | rtems-ee0e41355d1faa5f74085effc4f57c3a7fc1f884.tar.bz2 |
score: Fix a release/cancel job race condition
Split up the potential thread priority change in the scheduler
release/cancel job operation. Protect the rate monotonic period state
with a dedicated SMP lock. This avoids a race condition during
_Rate_monotonic_Timeout() while _Rate_monotonic_Cancel() is called on
another processor.
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulercbs.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulercbs.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/cpukit/score/include/rtems/score/schedulercbs.h b/cpukit/score/include/rtems/score/schedulercbs.h index bfad633987..c230e08d24 100644 --- a/cpukit/score/include/rtems/score/schedulercbs.h +++ b/cpukit/score/include/rtems/score/schedulercbs.h @@ -163,20 +163,7 @@ Scheduler_Void_or_thread _Scheduler_CBS_Unblock( Thread_Control *the_thread ); -/** - * @brief Called when a new job of task is released. - * - * This routine is called when a new job of task is released. - * It is called only from Rate Monotonic manager in the beginning - * of new period. Deadline has to be shifted and budget replenished. - * - * @param[in] scheduler The scheduler instance. - * @param[in] the_thread is the owner of the job. - * @param[in] length of the new job from now. If equal to 0, - * the job was cancelled or deleted. - */ - -void _Scheduler_CBS_Release_job ( +Thread_Control *_Scheduler_CBS_Release_job( const Scheduler_Control *scheduler, Thread_Control *the_thread, uint64_t length |