HP-UX Reference (11i v2 07/12) - 3 Library Functions N-Z (vol 7)

p
pthread_mutex_init(3T) pthread_mutex_init(3T)
(Pthread Library)
[EPERM] The caller does not have the necessary permission to perform the mutex initialization.
If any of the following occur, the pthread_mutex_destroy()
function returns the corresponding
error number:
[EBUSY] mutex is currently locked or in use by another thread.
[EINVAL] mutex is not a valid mutex.
WARNINGS
The space for the mutex must be allocated before calling
pthread_mutex_init()
. Undefined
behavior will result if the process-shared attribute of attr is
PTHREAD_PROCESS_SHARED
and the space
allocated for the mutex is not accessible to cooperating threads.
AUTHOR
pthread_mutex_init()
and pthread_mutex_destroy()
were derived from the IEEE POSIX
P1003.1c standard.
SEE ALSO
pthread_mutex_lock(3T), pthread_mutex_trylock(3T), pthread_mutex_unlock(3T).
STANDARDS CONFORMANCE
pthread_mutex_init()
: POSIX 1003.1c.
pthread_mutex_destroy()
: POSIX 1003.1c.
234 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: December 2007 Update