32 Enumerator(
int max = std::numeric_limits<int>::max()-2 );
Simple rank-global enumerator.
tarch::multicore::BooleanSemaphore _semaphore
static constexpr int NoNumber
void releaseNumber(int value)
Free a number.
Enumerator(int max=std::numeric_limits< int >::max() -2)
int size() const
Number of numbers handed out so far.
std::set< int > _activeNumbers
void reset()
Complete reset, which basically eliminates all the active numbers.
int getNumber()
Return unique number.
std::string toString() const
static tarch::logging::Log _log
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.