EHS Embedded HTTP Server
1.5.0.132
|
Automatically unlocks a mutex if destroyed. More...
#include <wsendpoint.h>
Public Member Functions | |
MutexHelper (pthread_mutex_t *mutex, bool locknow=true) | |
Constructs a new instance. | |
~MutexHelper () | |
Unlocks the associated mutex. | |
void | Lock () |
Locks the associated mutex. | |
void | Unlock () |
Unlocks the associated mutex. |
Automatically unlocks a mutex if destroyed.
MutexHelper | ( | pthread_mutex_t * | mutex, |
bool | locknow = true |
||
) | [inline] |
Constructs a new instance.
The associated mutex is locked by default.
mutex | The mutex to use. |
locknow | false, if the mutex should not be locked initially |
Definition at line 29 of file wsendpoint.h.
References Lock().