lock.h File Reference

#include <string>
#include <pthread.h>
#include <stdlib.h>
#include <assert.h>
#include <vector>
#include <queue>
#include <time.h>
#include "cmpxchg.h"

Include dependency graph for lock.h:

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

Go to the source code of this file.

Classes

class  Lock
 Atomic non-recursive waiting or non-waiting lock. More...
class  AutoLock
 Helper class to lock an object within a certain scope. More...

Defines

#define DamnPreprocessor(a)   #a
#define Synchronized_(a, b, c)   AutoLock tmp_auto_locker(a,#a "_at_" b DamnPreprocessor(c))
#define Synchronized(a)   Synchronized_(a,__FILE__, __LINE__)


Define Documentation

#define DamnPreprocessor (  )     #a

Definition at line 120 of file lock.h.

#define Synchronized (  )     Synchronized_(a,__FILE__, __LINE__)

Definition at line 122 of file lock.h.

#define Synchronized_ ( a,
b,
 )     AutoLock tmp_auto_locker(a,#a "_at_" b DamnPreprocessor(c))

Definition at line 121 of file lock.h.


Generated on Sun Apr 4 23:26:05 2010 for Active Objects by  doxygen 1.5.9