simple galois context and contention manager -*- C++ -*- More...
#include "Galois/config.h"
#include "Galois/MethodFlags.h"
#include "Galois/Runtime/ll/PtrLock.h"
#include "Galois/Runtime/ll/gio.h"
#include <boost/utility.hpp>
#include <cassert>
#include <cstdlib>
Go to the source code of this file.
Classes | |
class | Galois::Runtime::Releasable |
class | Galois::Runtime::Lockable |
All objects that may be locked (nodes primarily) must inherit from Lockable. More... | |
class | Galois::Runtime::LockManagerBase |
class | Galois::Runtime::SimpleRuntimeContext |
struct | Galois::Runtime::AlwaysLockObj |
struct | Galois::Runtime::CheckedLockObj |
Namespaces | |
namespace | Galois |
Main Galois namespace. | |
namespace | Galois::Runtime |
Internal Galois functionality - Use at your own risk. | |
Enumerations | |
enum | Galois::Runtime::ConflictFlag { Galois::Runtime::CONFLICT = -1, Galois::Runtime::NO_CONFLICT = 0, Galois::Runtime::REACHED_FAILSAFE = 1, Galois::Runtime::BREAK = 2 } |
enum | Galois::Runtime::PendingFlag { Galois::Runtime::NON_DET, Galois::Runtime::PENDING, Galois::Runtime::COMMITTING } |
Functions | |
void | Galois::Runtime::setPending (PendingFlag value) |
Used by deterministic and ordered executor. | |
PendingFlag | Galois::Runtime::getPending () |
static void | Galois::Runtime::clearConflictLock () |
used to release lock over exception path | |
static void | Galois::Runtime::clearReleasable () |
SimpleRuntimeContext * | Galois::Runtime::getThreadContext () |
get the current conflict detection class, may be null if not in parallel region | |
void | Galois::Runtime::setThreadContext (SimpleRuntimeContext *n) |
used by the parallel code to set up conflict detection per thread | |
bool | Galois::Runtime::shouldLock (const Galois::MethodFlag g) |
Helper function to decide if the conflict detection lock should be taken. | |
void | Galois::Runtime::doAcquire (Lockable *lockable) |
actual locking function. Will always lock. | |
void | Galois::Runtime::acquire (Lockable *lockable, Galois::MethodFlag m) |
Master function which handles conflict detection used to acquire a lockable thing. | |
void | Galois::Runtime::signalConflict (Lockable *) |
void | Galois::Runtime::forceAbort () |
simple galois context and contention manager -*- C++ -*-
Galois, a framework to exploit amorphous data-parallelism in irregular programs.
Copyright (C) 2012, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.