summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-13 15:07:20 +0000
committerbje <bje>1998-07-13 15:07:20 +0000
commit99da31c6c17512641a137046160061031229a963 (patch)
treefeef1b6b636fa066176c0a2e93946ec797055931 /mutex.c
parent00a7b51609c86bf0cdc9b3ea8fb4f8d2b672c989 (diff)
1998-07-14 Ben Elliston <bje@cygnus.com>
* mutex.c (pthread_mutex_lock): Add `_mutex' to function name. (pthread_mutex_trylock): Likewise. (pthread_mutex_unlock): Likewise.
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c6
1 files 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))