8#ifndef META_OCEAN_TEST_TESTBASE_TEST_LOCK_H
9#define META_OCEAN_TEST_TESTBASE_TEST_LOCK_H
44 template <
bool tThreadSafe>
53 void function(
int& value);
118template <
bool tThreadSafe>
This class implements a recursive lock object.
Definition Lock.h:31
This class implements a template-based recursive lock object.
Definition Lock.h:99
This class implements a recursive scoped lock object that is activated by a boolean template paramete...
Definition Lock.h:190
Definition of an empty class.
Definition TestLock.h:37
Definition of a helper class.
Definition TestLock.h:46
void function(int &value)
A function.
Definition TestLock.h:119
TemplatedLock< tThreadSafe > lock_
The object's lock.
Definition TestLock.h:58
This class tests lock functions.
Definition TestLock.h:30
static bool testScopedLock()
Tests the scoped lock object.
static bool testDualScopedLock()
Tests the dual scoped lock object.
static bool test(const TestSelector &selector=TestSelector())
Tests all lock functions.
static void threadFunction(Lock &firstLock, Lock &secondLock, unsigned int &counter, const unsigned int iterations)
Thread function for testing DualScopedLockT.
static Lock & staticLockObject()
Returns the static lock object.
static bool testTemplatedLock()
Tests the templated lock object.
static bool testLockUnlock()
Tests the lock and unlock functions.
static bool testStaticScopedLock()
Tests a static scoped lock object.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15