#include <sys/threads.h>
int condCreate(handle_t *h);
Implemented
Phoenix-RTOS specific
The condCreate()
function shall initialize the condition variable referenced by h using default attributes. Upon
successful initialization, the state of the condition variable shall become initialized.
Attempting to initialize an already initialized condition variable results in undefined behavior.
If successful, the condCreate()
function shall return zero; otherwise,
an error number shall be returned to indicate the error.
The condCreate()
function shall fail if:
-ENOMEM
- Insufficient memory exists to initialize the condition variable.-EFAULT
- The address specified byh
is invalid.
These functions shall not return an error code of EINTR
.
Tested in test-sys
None