68#if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION)
69# error "Header files shouldn't be included directly, consider using <plibsys.h> instead."
72#ifndef PLIBSYS_HEADER_PCONDVARIABLE_H
73#define PLIBSYS_HEADER_PCONDVARIABLE_H
P_LIB_API PCondVariable * p_cond_variable_new(void)
Creates a new PCondVariable.
P_LIB_API pboolean p_cond_variable_signal(PCondVariable *cond)
Emitts a signal on a given condition variable for one waiting thread.
struct PCondVariable_ PCondVariable
Condition variable opaque data structure.
P_LIB_API void p_cond_variable_free(PCondVariable *cond)
Frees PCondVariable structure.
P_LIB_API pboolean p_cond_variable_broadcast(PCondVariable *cond)
Emitts a signal on a given condition variable for all the waiting threads.
P_LIB_API pboolean p_cond_variable_wait(PCondVariable *cond, PMutex *mutex)
Waits for a signal on a given condition variable.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS.
#define P_LIB_API
Exports a symbol from a shared library.
struct PMutex_ PMutex
Mutex opaque data structure.
signed int pboolean
Type for a bool.