next up previous contents index
Next: 18.3.38 pthread_resume: Resume a Up: 18.3 POSIX Threads Reference Previous: 18.3.36 pthread_mutex_trylock: Attempt to

18.3.37 pthread_mutex_unlock: Unlock a mutex object

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_mutex_unlock(pthread_mutex_t *m);

DESCRIPTION

Unlock a mutex object. If there other threads waiting to acquire the mutex, the highest priority thread is woken up and granted the mutex.

PARAMETERS

mutex
A pointer to the mutex object.

RETURNS

Returns zero on success.

RELATED INFORMATION

pthread_mutex_init, pthread_mutex_trylock, pthread_mutex_lock



University of Utah Flux Research Group