|
Cyber Garage Portable Runtime (CGPR) for C
|
Data Structures | |
| struct | _CGMutex |
| The generic wrapper struct for mUPnP's mutexes. More... | |
Typedefs | |
| typedef struct _CGMutex | CGMutex |
| The generic wrapper struct for mUPnP's mutexes. | |
Functions | |
| CGMutex * | cg_mutex_new (void) |
| bool | cg_mutex_delete (CGMutex *mutex) |
| bool | cg_mutex_lock (CGMutex *mutex) |
| bool | cg_mutex_unlock (CGMutex *mutex) |
The generic wrapper struct for mUPnP's mutexes.
This wrapper has been created to enable 100% code compatibility for different platforms (Linux, Win32 etc..)
| bool cg_mutex_delete | ( | CGMutex * | mutex | ) |
Destroy a mutex
| mutex | The mutex to destroy |
| bool cg_mutex_lock | ( | CGMutex * | mutex | ) |
Acquire a mutex lock
| mutex | Mutex to lock |
| CGMutex * cg_mutex_new | ( | void | ) |
Create a new mutex
| bool cg_mutex_unlock | ( | CGMutex * | mutex | ) |
Release a locked mutex
| mutex | Mutex to unlock |