diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-09 21:52:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-09 21:52:09 +0000 |
commit | 17b73dc766910526c59923f9afcfa11aca4fd548 (patch) | |
tree | ebc50b79f7b71b898857bbda82e7311224d51425 /cpukit/score/src/apimutexunlock.c | |
parent | 2007-11-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-17b73dc766910526c59923f9afcfa11aca4fd548.tar.bz2 |
2007-11-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/apimutexlock.c, score/src/apimutexunlock.c: Functions were
in opposite files. Whoops!
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(); } |