diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-18 11:09:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-05-19 15:14:33 +0200 |
commit | d5423295988918f45b64d50cf0b9501a56b9aa36 (patch) | |
tree | de09916f70f4f10b47cf080e7149c1cef2c47198 /cpukit/score/include/rtems/score/coremuteximpl.h | |
parent | score: Replace _Thread_Delay_ended() (diff) | |
download | rtems-d5423295988918f45b64d50cf0b9501a56b9aa36.tar.bz2 |
score: _Thread_Dispatch_disable_critical()
Thread dispatching is disabled in case interrupts are disabled. To get
an accurate thread dispatch disabled time it is important to use the
interrupt disabled instant in case a transition from an interrupt
disabled section to a thread dispatch level section happens.
Diffstat (limited to 'cpukit/score/include/rtems/score/coremuteximpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/coremuteximpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h index ca9d61df4a..f57fdfcfd5 100644 --- a/cpukit/score/include/rtems/score/coremuteximpl.h +++ b/cpukit/score/include/rtems/score/coremuteximpl.h @@ -489,7 +489,7 @@ RTEMS_INLINE_ROUTINE int _CORE_mutex_Seize_interrupt_trylock_body( if ( current > ceiling ) { Per_CPU_Control *cpu_self; - cpu_self = _Thread_Dispatch_disable_critical(); + cpu_self = _Thread_Dispatch_disable_critical( lock_context ); _Thread_queue_Release( &the_mutex->Wait_queue, lock_context ); _Thread_Raise_priority( executing, ceiling ); _Thread_Dispatch_enable( cpu_self ); |