diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-20 13:41:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-24 14:35:05 +0100 |
commit | 4054c9164601830c7ead74be612d33c4717d8ea6 (patch) | |
tree | 10b417daff4d9013a3fda4ee6f42895129259984 /cpukit/score/src/threadready.c | |
parent | score: Use a dedicated ISR lock for thread queues (diff) | |
download | rtems-4054c9164601830c7ead74be612d33c4717d8ea6.tar.bz2 |
score: Add scheduler acquire/release
This is currently a global lock for all scheduler instances. It should
get replaced with one lock per scheduler instance in the future.
Update #2273.
Diffstat (limited to 'cpukit/score/src/threadready.c')
-rw-r--r-- | cpukit/score/src/threadready.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/threadready.c b/cpukit/score/src/threadready.c index b79d8db84d..5375294fe9 100644 --- a/cpukit/score/src/threadready.c +++ b/cpukit/score/src/threadready.c @@ -26,13 +26,13 @@ void _Thread_Ready( Thread_Control *the_thread ) { - ISR_Level level; + ISR_lock_Context lock_context; - _ISR_Disable( level ); + _Scheduler_Acquire( the_thread, &lock_context ); the_thread->current_state = STATES_READY; _Scheduler_Unblock( the_thread ); - _ISR_Enable( level ); + _Scheduler_Release( the_thread, &lock_context ); } |