mUPnP for C
|
Data Structures | |
struct | _mUpnpCond |
The generic wrapper struct for mUPnP's conds. More... | |
Typedefs | |
typedef struct _mUpnpCond | mUpnpCond |
The generic wrapper struct for mUPnP's conds. | |
Functions | |
mUpnpCond * | mupnp_cond_new (void) |
bool | mupnp_cond_delete (mUpnpCond *cond) |
bool | mupnp_cond_wait (mUpnpCond *cond, mUpnpMutex *mutex, unsigned long timeout) |
bool | mupnp_cond_signal (mUpnpCond *cond) |
typedef struct _mUpnpCond mUpnpCond |
The generic wrapper struct for mUPnP'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 |
mUpnpCond * mupnp_cond_new | ( | void | ) |
Create a new condition variable
Signal a condition variable
cond | Cond to be signalled |
bool mupnp_cond_wait | ( | mUpnpCond * | cond, |
mUpnpMutex * | mutex, | ||
unsigned long | timeout ) |
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 |