diff options
Diffstat (limited to 'cpukit/score/src/apimutexunlock.c')
-rw-r--r-- | cpukit/score/src/apimutexunlock.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/cpukit/score/src/apimutexunlock.c b/cpukit/score/src/apimutexunlock.c index 3618af1d8a..ca824a6e6c 100644 --- a/cpukit/score/src/apimutexunlock.c +++ b/cpukit/score/src/apimutexunlock.c @@ -16,19 +16,15 @@ #include <rtems/system.h> #include <rtems/score/apimutex.h> -void _API_Mutex_Lock( +void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { - ISR_Level level; - - _ISR_Disable( level ); - - _CORE_mutex_Seize( - &the_mutex->Mutex, - the_mutex->Object.id, - TRUE, - 0, - level - ); + _Thread_Disable_dispatch(); + _CORE_mutex_Surrender( + &the_mutex->Mutex, + the_mutex->Object.id, + NULL + ); + _Thread_Enable_dispatch(); } |