EHS Embedded HTTP Server
MutexHelper Class Reference

Automatically unlocks a mutex if destroyed. More...

#include <wsendpoint.h>

List of all members.

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.

Detailed Description

Automatically unlocks a mutex if destroyed.

Constructor & Destructor Documentation

MutexHelper ( pthread_mutex_t *  mutex,
bool  locknow = true 
) [inline]

Constructs a new instance.

The associated mutex is locked by default.

mutexThe mutex to use.
locknowfalse, if the mutex should not be locked initially

Definition at line 29 of file wsendpoint.h.

References Lock().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: