Интерактивная система просмотра системных руководств (man-ов)
pthread_mutex_destroy (3)
>> pthread_mutex_destroy (3) ( FreeBSD man: Библиотечные вызовы ) pthread_mutex_destroy (3) ( POSIX man: Библиотечные вызовы )
BSD mandoc
NAME
pthread_mutex_destroy
- free resources allocated for a mutex
LIBRARY
Lb libpthread
SYNOPSIS
#include <pthread.h>
int
pthread_mutex_destroy (pthread_mutex_t *mutex);
DESCRIPTION
The
pthread_mutex_destroy ();
function frees the resources allocated for
Fa mutex .
RETURN VALUES
If successful,
pthread_mutex_destroy ();
will return zero, otherwise an error number will be returned to
indicate the error.
ERRORS
The
pthread_mutex_destroy ();
function will fail if:
- Bq Er EINVAL
-
The value specified by
Fa mutex
is invalid.
- Bq Er EBUSY
-
Fa Mutex
is locked by another thread.
SEE ALSO
pthread_mutex_init3,
pthread_mutex_lock3,
pthread_mutex_trylock3,
pthread_mutex_unlock3
STANDARDS
The
pthread_mutex_destroy ();
function conforms to
St -p1003.1-96 .
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- ERRORS
-
- SEE ALSO
-
- STANDARDS
-