(see pthread_mutex_lock()) (c)Signals
pthread_mutex_unlock
Prototype:
#include <pthread.h>
int pthread_mutex_unlock(pthread_mutex_t *mutex);
General Description: Unlock a mutex semaphore.
Return Value: The call returns a zero on success and nonzero on error. You can find the exact code in errno.
Parameters
mutex The semaphore variable.
Possible Errors
EINVAL The mutex has not been properly initialized.
EPERM The calling thread does not own the mutex (error checking mutexes only).
Examples