summaryrefslogtreecommitdiff
path: root/kern/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/mutex.h')
-rw-r--r--kern/mutex.h6
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);