Galois
|
#include <Context.h>
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 SimpleRuntimeContext * | getOwner (Lockable *lockable) |
Static Protected Member Functions inherited from galois::runtime::LockManagerBase | |
static bool | tryLock (Lockable *lockable) |
static LockManagerBase * | getOwner (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 } |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
unsigned galois::runtime::SimpleRuntimeContext::cancelIteration | ( | ) |
unsigned galois::runtime::SimpleRuntimeContext::commitIteration | ( | ) |
|
inlinestaticprotected |
|
protected |
|
inline |
|
protectedvirtual |
|
friend |
actual locking function. Will always lock.