mUPnP for C
mutex.c File Reference
#include <mupnp/util/log.h>
#include <mupnp/util/mutex.h>
#include <errno.h>

Macros

#define mupnp_log_debug_l4(msg)
 

Functions

mUpnpMutexmupnp_mutex_new ()
 
bool mupnp_mutex_delete (mUpnpMutex *mutex)
 
bool mupnp_mutex_lock (mUpnpMutex *mutex)
 
bool mupnp_mutex_unlock (mUpnpMutex *mutex)
 

Macro Definition Documentation

◆ mupnp_log_debug_l4

#define mupnp_log_debug_l4 ( msg)

Function Documentation

◆ mupnp_mutex_delete()

bool mupnp_mutex_delete ( mUpnpMutex * mutex)

Destroy a mutex

Parameters
mutexThe mutex to destroy

◆ mupnp_mutex_lock()

bool mupnp_mutex_lock ( mUpnpMutex * mutex)

Acquire a mutex lock

Parameters
mutexMutex to lock

◆ mupnp_mutex_new()

mUpnpMutex * mupnp_mutex_new ( void )

Create a new mutex

◆ mupnp_mutex_unlock()

bool mupnp_mutex_unlock ( mUpnpMutex * mutex)

Release a locked mutex

Parameters
mutexMutex to unlock