src/engine/mutex.h File Reference

#include <pthread.h>

Include dependency graph for mutex.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Mutex

Defines

#define MUTEX_LOCK(m)   m.Lock();
 Mutex handling.
#define MUTEX_UNLOCK(m)   (m).Unlock();

Enumerations

enum  MutexType { NORMAL_MUTEX, RECURSIVE_MUTEX }
 Mutex type. More...


Define Documentation

#define MUTEX_LOCK (  )     m.Lock();

Mutex handling.

Definition at line 15 of file mutex.h.

#define MUTEX_UNLOCK (  )     (m).Unlock();

Definition at line 24 of file mutex.h.


Enumeration Type Documentation

enum MutexType

Mutex type.

Enumerator:
NORMAL_MUTEX  Normal mutex : the mutex needs to be in an unlocked state to be locked. When compiled with the DEBUG flag, NORMAL_MUTEX generates an error when a thread tries to lock it twice. When compiled without the DEBUG flag, NORMAL_MUTEX generate a dead lock when a thread tries to lock it twice.
RECURSIVE_MUTEX  Recursive mutex : the mutex can be locked multiple time be the same thread.

Definition at line 28 of file mutex.h.


Generated on Sun Oct 10 19:10:03 2010 for libldsw by  doxygen 1.5.8