HP-UX Reference (11i v2 03/08) - 3 Library Functions N-Z (vol 7)
p
pthread_cond_init(3T) pthread_cond_init(3T)
(Pthread Library)
[EFAULT] The cond parameter points to an illegal address.
For each of the following conditions, if the condition is detected, the
pthread_cond_destroy()
func-
tion returns the corresponding error number:
[EINVAL] cond is not a valid condition variable.
[EBUSY] An attempt to destroy cond while it is in use by another thread.
WARNINGS
The space for condition variable must be allocated before calling
pthread_cond_init()
. Undefined
behavior will result if the process-shared attribute of attr is
PTHREAD_PROCESS_SHARED
and the space
allocated for the condition variable is not accessible to cooperating threads.
AUTHOR
pthread_cond_init()
and pthread_cond_destroy()
were derived from the IEEE POSIX
P1003.1c standard.
SEE ALSO
pthread_cond_wait(3T), pthread_cond_signal(3T).
STANDARDS CONFORMANCE
pthread_cond_init()
: POSIX 1003.1c.
pthread_cond_destroy()
: POSIX 1003.1c.
Section 3−−754 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003