pthread_cond_init.3t (2010 09)

p
pthread_cond_init(3T) pthread_cond_init(3T)
(Pthread Library)
[ENOMEM] There is insufficient memory available in which to initialize the condition variable.
If any of the following occur, the
pthread_cond_destroy()
function returns the corresponding error
number:
[EBUSY] An attempt to destroy cond while it is in use by another thread.
[EINVAL] cond is not a valid condition variable.
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_signal(3T), pthread_cond_wait(3T).
STANDARDS CONFORMANCE
pthread_cond_init()
: POSIX 1003.1c.
pthread_cond_destroy()
: POSIX 1003.1c.
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010