diff options
author | Richard Braun <rbraun@sceen.net> | 2017-04-09 15:32:05 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-04-09 15:32:05 +0200 |
commit | 239d8d2d4c14f917767c8c6d177aeb934df2c53a (patch) | |
tree | 6f6c7a49fc8208b92ddcf655c2738cd9d45516dc /kern/mutex.h | |
parent | 0da895c489144cdd59849d6cca28f29e7cb2ad24 (diff) |
kern/{mutex,rtmutex}: normalize fast path names
Diffstat (limited to 'kern/mutex.h')
-rw-r--r-- | kern/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/mutex.h b/kern/mutex.h index c8ae4639..f9fcd35a 100644 --- a/kern/mutex.h +++ b/kern/mutex.h @@ -98,7 +98,7 @@ mutex_trylock(struct mutex *mutex) { unsigned int state; - state = mutex_tryacquire(mutex); + state = mutex_lock_fast(mutex); if (state == MUTEX_UNLOCKED) { return 0; @@ -120,7 +120,7 @@ mutex_lock(struct mutex *mutex) { unsigned int state; - state = mutex_tryacquire(mutex); + state = mutex_lock_fast(mutex); if (state == MUTEX_UNLOCKED) { return; @@ -142,7 +142,7 @@ mutex_unlock(struct mutex *mutex) { unsigned int state; - state = mutex_release(mutex); + state = mutex_unlock_fast(mutex); if (state != MUTEX_LOCKED) { assert(state == MUTEX_CONTENDED); |