Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::LockManagerBase Class Reference

#include <Context.h>

Inheritance diagram for galois::runtime::LockManagerBase:
galois::runtime::SimpleRuntimeContext

Protected Types

enum  AcquireStatus { FAIL, NEW_OWNER, ALREADY_OWNER }
 

Protected Member Functions

AcquireStatus tryAcquire (Lockable *lockable)
 
bool stealByCAS (Lockable *lockable, LockManagerBase *other)
 
bool CASowner (Lockable *lockable, LockManagerBase *other)
 
void setOwner (Lockable *lockable)
 
void release (Lockable *lockable)
 

Static Protected Member Functions

static bool tryLock (Lockable *lockable)
 
static LockManagerBasegetOwner (Lockable *lockable)
 

Member Enumeration Documentation

Enumerator
FAIL 
NEW_OWNER 
ALREADY_OWNER 

Member Function Documentation

bool galois::runtime::LockManagerBase::CASowner ( Lockable lockable,
LockManagerBase other 
)
inlineprotected
static LockManagerBase* galois::runtime::LockManagerBase::getOwner ( Lockable lockable)
inlinestaticprotected
void galois::runtime::LockManagerBase::release ( Lockable lockable)
inlineprotected
void galois::runtime::LockManagerBase::setOwner ( Lockable lockable)
inlineprotected
bool galois::runtime::LockManagerBase::stealByCAS ( Lockable lockable,
LockManagerBase other 
)
inlineprotected
galois::runtime::LockManagerBase::AcquireStatus galois::runtime::LockManagerBase::tryAcquire ( Lockable lockable)
protected
static bool galois::runtime::LockManagerBase::tryLock ( Lockable lockable)
inlinestaticprotected

The documentation for this class was generated from the following files: