EHS Embedded HTTP Server
1.5.1.173
|
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. More... | |
~MutexHelper () | |
Unlocks the associated mutex. | |
void | Lock () |
Locks the associated mutex. | |
void | Unlock () |
Unlocks the associated mutex. | |
Automatically unlocks a mutex if destroyed.
Definition at line 21 of file wsendpoint.h.
|
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().