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

#include <Context.h>

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

Public Member Functions

 SimpleRuntimeContext (bool child=false)
 
virtual ~SimpleRuntimeContext ()
 
void startIteration ()
 
unsigned cancelIteration ()
 
unsigned commitIteration ()
 

Protected Member Functions

virtual void subAcquire (Lockable *lockable, galois::MethodFlag m)
 
void addToNhood (Lockable *lockable)
 
void acquire (Lockable *lockable, galois::MethodFlag m)
 
void release (Lockable *lockable)
 
- Protected Member Functions inherited from galois::runtime::LockManagerBase
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 SimpleRuntimeContextgetOwner (Lockable *lockable)
 
- Static Protected Member Functions inherited from galois::runtime::LockManagerBase
static bool tryLock (Lockable *lockable)
 
static LockManagerBasegetOwner (Lockable *lockable)
 

Friends

void doAcquire (Lockable *, galois::MethodFlag)
 actual locking function. Will always lock. More...
 

Additional Inherited Members

- Protected Types inherited from galois::runtime::LockManagerBase
enum  AcquireStatus { FAIL, NEW_OWNER, ALREADY_OWNER }
 

Constructor & Destructor Documentation

galois::runtime::SimpleRuntimeContext::SimpleRuntimeContext ( bool  child = false)
inline
virtual galois::runtime::SimpleRuntimeContext::~SimpleRuntimeContext ( )
inlinevirtual

Member Function Documentation

void galois::runtime::SimpleRuntimeContext::acquire ( Lockable lockable,
galois::MethodFlag  m 
)
inlineprotected
void galois::runtime::SimpleRuntimeContext::addToNhood ( Lockable lockable)
inlineprotected
unsigned galois::runtime::SimpleRuntimeContext::cancelIteration ( )
unsigned galois::runtime::SimpleRuntimeContext::commitIteration ( )
static SimpleRuntimeContext* galois::runtime::SimpleRuntimeContext::getOwner ( Lockable lockable)
inlinestaticprotected
void galois::runtime::SimpleRuntimeContext::release ( Lockable lockable)
protected
void galois::runtime::SimpleRuntimeContext::startIteration ( )
inline
void galois::runtime::SimpleRuntimeContext::subAcquire ( Lockable lockable,
galois::MethodFlag  m 
)
protectedvirtual

Friends And Related Function Documentation

void doAcquire ( Lockable lockable,
galois::MethodFlag  m 
)
friend

actual locking function. Will always lock.


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