MercuryThreads.h File Reference

#include "MercuryString.h"
#include <pthread.h>

Go to the source code of this file.

Classes

class  MercuryThread
 Thread object. More...
class  MercuryMutex
 Mutual exclusion object. More...
class  MLockPtr< T >
 This can be used to have the compile help us find code that is not threadsafe. More...

Defines

#define COND_MUTEX(x)   MercuryMutex x
#define SETUP_MUTEX(x)
#define LOCK_MUTEX(x)   x.Wait()
#define UNLOCK_MUTEX(x)   x.UnLock()


Define Documentation

#define COND_MUTEX (  )     MercuryMutex x

Definition at line 115 of file MercuryThreads.h.

#define LOCK_MUTEX (  )     x.Wait()

Definition at line 122 of file MercuryThreads.h.

#define SETUP_MUTEX (  ) 

Value:

x.Open(); \
    x.UnLock()

Definition at line 118 of file MercuryThreads.h.

#define UNLOCK_MUTEX (  )     x.UnLock()

Definition at line 125 of file MercuryThreads.h.


Hosted by SourceForge.net Logo