161 static std::map< int, tarch::multicore::BooleanSemaphore* >
_resources;
Task enumerator for Swift 2.
int size() const
Number of numbers handed out so far.
static void insertNumber(int number)
Create a new number.
static void insertNumbers(const tarch::la::Vector< TwoPowerD, int > &numbers)
static std::map< int, tarch::multicore::BooleanSemaphore * > _resources
Each task is tied to a resource, i.e.
static void unlockResources(const tarch::la::Vector< TwoPowerD, int > &numbers)
Free resources.
static ResourcesSemaphore _resourcesSemaphore
int getNumber()
Create a new task number.
static tarch::Enumerator _globalEnumerator
void releaseNumber(int value)
Free task number.
std::string toString() const
Decorator for tarch::Enumerator::toString().
static void lockResources(const tarch::la::Vector< TwoPowerD, int > &numbers)
Lock resources.
Simple rank-global enumerator.
This file is part of the SWIFT 2 project.