#include <cybergarage/typedef.h>
#include <cybergarage/util/cmutex.h>
#include <pthread.h>
Data Structures | |
struct | _CgCond |
The generic wrapper struct for CyberLinkC's conds. More... | |
Typedefs | |
typedef _CgCond | CgCond |
The generic wrapper struct for CyberLinkC's conds. | |
Functions | |
CgCond * | cg_cond_new () |
BOOL | cg_cond_delete (CgCond *cond) |
BOOL | cg_cond_wait (CgCond *cond, CgMutex *mutex, unsigned long timeout) |
BOOL | cg_cond_signal (CgCond *cond) |
The generic wrapper struct for CyberLinkC's conds.
This wrapper has been created to enable 100% code compatibility for different platforms (Linux, Win32 etc..)
Destroy a condition variable
cond | The cond to destroy |
CgCond* cg_cond_new | ( | ) |
Create a new condition variable
Signal a condition variable
cond | Cond to be signalled |
Wait for condition variable to be signalled.
cond | Cond to be waited | |
mutex | Mutex used for synchronization | |
timeout | Maximum time in seconds to wait, 0 to wait forever |