next up previous contents index
Next: 18.3.35 pthread_mutex_lock: Lock a Up: 18.3 POSIX Threads Reference Previous: 18.3.33 pthread_mutex_init: Initialize a

18.3.34 pthread_mutex_destroy: Destroy a mutex object

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_mutex_destroy(pthread_mutex_t *m);

DESCRIPTION

The mutex object is destroyed, although the memory for the object is not deallocated. The mutex must not be held.

PARAMETERS

mutex
A pointer to the mutex object.

RETURNS

Returns zero on success. Returns EBUSY if the mutex is still held.

RELATED INFORMATION

pthread_mutex_init



University of Utah Flux Research Group