From 99da31c6c17512641a137046160061031229a963 Mon Sep 17 00:00:00 2001 From: bje Date: Mon, 13 Jul 1998 15:07:20 +0000 Subject: 1998-07-14 Ben Elliston * mutex.c (pthread_mutex_lock): Add `_mutex' to function name. (pthread_mutex_trylock): Likewise. (pthread_mutex_unlock): Likewise. --- mutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mutex.c b/mutex.c index f4fb4f9..a4bfd55 100644 --- a/mutex.c +++ b/mutex.c @@ -171,7 +171,7 @@ pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, } int -pthread_lock(pthread_mutex_t *mutex) +pthread_mutex_lock(pthread_mutex_t *mutex) { switch (WaitForSingleObject(*mutex, INFINITE)) { @@ -188,7 +188,7 @@ pthread_lock(pthread_mutex_t *mutex) } int -pthread_unlock(pthread_mutex_t *mutex) +pthread_mutex_unlock(pthread_mutex_t *mutex) { if (ReleaseMutex(*mutex) != TRUE) { @@ -204,7 +204,7 @@ pthread_unlock(pthread_mutex_t *mutex) } int -pthread_trylock(pthread_mutex_t *mutex) +pthread_mutex_trylock(pthread_mutex_t *mutex) { /* If the mutex is already held, return EBUSY. */ switch (WaitForSingleObject(*mutex, 0)) -- cgit v1.2.3