Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SimpleLock.h File Reference
#include <atomic>
#include <cassert>
#include <mutex>
#include "galois/config.h"
#include "galois/substrate/CompilerSpecific.h"

Go to the source code of this file.

Classes

class  galois::substrate::SimpleLock
 SimpleLock is a spinlock. More...
 
class  galois::substrate::DummyLock
 Dummy Lock implements the lock interface without a lock for serial code. More...
 

Namespaces

 galois
 The Galois namespace containing all Galois structures and functions.
 
 galois::substrate
 Contains threading and machine OS support.
 

Macros

#define MAKE_LOCK_GUARD(__x)   galois::substrate::lock_guard_galois locker##___COUNTER__(__x)
 

Typedefs

template<bool Enabled>
using galois::substrate::CondLock = typename std::conditional< Enabled, SimpleLock, DummyLock >::type
 
using galois::substrate::lock_guard_galois = std::lock_guard< SimpleLock >
 

Macro Definition Documentation

#define MAKE_LOCK_GUARD (   __x)    galois::substrate::lock_guard_galois locker##___COUNTER__(__x)