8 #ifndef META_OCEAN_TEST_TESTBASE_TEST_THREAD_POOL_H
9 #define META_OCEAN_TEST_TESTBASE_TEST_THREAD_POOL_H
44 void addId(
const unsigned int id);
79 static bool test(
const double testDuration);
This class implements a recursive lock object.
Definition: Lock.h:31
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
This class implements a helper class allowing to keep track of function executions.
Definition: TestThreadPool.h:37
void addId(const unsigned int id)
Adds a new id.
bool hasId() const
Returns whether at least one id exists.
Lock lock_
The singleton's lock.
Definition: TestThreadPool.h:69
UnorderedIndexSet32 ids_
The ids.
Definition: TestThreadPool.h:66
void clear()
Clears all ids.
UnorderedIndexSet32 ids() const
Returns the added ids.
This class implements tests for the ThreadPool class.
Definition: TestThreadPool.h:30
static bool testInvokeFunctions(const double testDuration)
Tests to invoke several functions.
static bool test(const double testDuration)
Tests all TestThreadPool functions.
std::unordered_set< Index32 > UnorderedIndexSet32
Definition of an unordered_set holding 32 bit indices.
Definition: Base.h:126
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15