#include <string>
#include <pthread.h>
#include <stdlib.h>
#include <assert.h>
#include <vector>
#include <queue>
#include <time.h>
#include "cmpxchg.h"
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 Synchronized | ( | a | ) | Synchronized_(a,__FILE__, __LINE__) |
#define Synchronized_ | ( | a, | |||
b, | |||||
c | ) | AutoLock tmp_auto_locker(a,#a "_at_" b DamnPreprocessor(c)) |