Namespaces
Variants
Views
Actions

cnd_init

From cppreference.com
< c‎ | thread
Revision as of 18:36, 9 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <threads.h>
int cnd_init( cnd_t* cond );
(since C11)

Initializes new condition variable. The object pointed to by cond will be set to value that identifies the condition variable.

[edit] Parameters

cond - pointer to a variable to store identifier of the condition variable to

[edit] Return value

thrd_success if the condition variable was successfully created. Otherwise returns thrd_nomem if there was insufficient amount of memory or thrd_error if another error occurred.