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