Galois
|
This is the object passed to the user's parallel loop. More...
#include <UserContext.h>
Public Member Functions | |
UserContext () | |
void | breakLoop () |
Signal break in parallel loop, current iteration continues untill natural termination. More... | |
PerIterAllocTy & | getPerIterAlloc () |
Acquire a per-iteration allocator. More... | |
template<typename... Args> | |
void | push (Args &&...args) |
Push new work. More... | |
template<typename... Args> | |
void | push_back (Args &&...args) |
Push new work. More... | |
template<typename... Args> | |
void | insert (Args &&...args) |
Push new work. More... | |
void | abort () |
Force the abort of this iteration. More... | |
template<typename LS > | |
LS * | getLocalState (void) |
Store and retrieve local state for deterministic. More... | |
template<typename LS , typename... Args> | |
LS * | createLocalState (Args &&...args) |
bool | isFirstPass (void) const |
used by deterministic and ordered More... | |
void | cautiousPoint () |
declare that the operator has crossed the cautious point. More... | |
Protected Types | |
typedef gdeque< T > | PushBufferTy |
push stuff More... | |
typedef std::function< void(PushBufferTy &)> | FastPushBack |
Protected Member Functions | |
void | __resetAlloc () |
void | __setFirstPass (void) |
void | __resetFirstPass (void) |
PushBufferTy & | __getPushBuffer () |
void | __resetPushBuffer () |
void | __setLocalState (void *p) |
void | __setFastPushBack (FastPushBack f) |
Protected Attributes | |
PushBufferTy | pushBuffer |
IterAllocBaseTy | IterationAllocatorBase |
Allocator stuff. More... | |
PerIterAllocTy | PerIterationAllocator |
bool * | didBreak = nullptr |
used by all More... | |
FastPushBack | fastPushBack |
bool | firstPassFlag = false |
some flags used by deterministic More... | |
void * | localState = nullptr |
Static Protected Attributes | |
static const unsigned int | fastPushBackLimit = 64 |
This is the object passed to the user's parallel loop.
This provides the in-loop api.
|
protected |
|
protected |
push stuff
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Force the abort of this iteration.
|
inline |
Signal break in parallel loop, current iteration continues untill natural termination.
|
inline |
declare that the operator has crossed the cautious point.
This implies all data has been touched thus no new locks will be acquired.
|
inline |
|
inline |
Store and retrieve local state for deterministic.
|
inline |
Acquire a per-iteration allocator.
|
inline |
Push new work.
|
inline |
used by deterministic and ordered
|
inline |
Push new work.
|
inline |
Push new work.
|
protected |
used by all
|
protected |
|
staticprotected |
|
protected |
some flags used by deterministic
|
protected |
Allocator stuff.
|
protected |
|
protected |
|
protected |