mUPnP for C
cond.c File Reference
#include <mupnp/util/cond.h>
#include <mupnp/util/log.h>
#include <sys/time.h>

Functions

mUpnpCondmupnp_cond_new ()
 
bool mupnp_cond_delete (mUpnpCond *cond)
 
bool mupnp_cond_wait (mUpnpCond *cond, mUpnpMutex *mutex, unsigned long timeout)
 
bool mupnp_cond_signal (mUpnpCond *cond)
 

Function Documentation

◆ mupnp_cond_delete()

bool mupnp_cond_delete ( mUpnpCond * cond)

Destroy a condition variable

Parameters
condThe cond to destroy

◆ mupnp_cond_new()

mUpnpCond * mupnp_cond_new ( void )

Create a new condition variable

◆ mupnp_cond_signal()

bool mupnp_cond_signal ( mUpnpCond * cond)

Signal a condition variable

Parameters
condCond to be signalled

◆ mupnp_cond_wait()

bool mupnp_cond_wait ( mUpnpCond * cond,
mUpnpMutex * mutex,
unsigned long timeout )

Wait for condition variable to be signalled.

Parameters
condCond to be waited
mutexMutex used for synchronization
timeoutMaximum time in seconds to wait, 0 to wait forever