8#ifndef META_OCEAN_TEST_TESTBASE_TEST_THREAD_H
9#define META_OCEAN_TEST_TESTBASE_TEST_THREAD_H
71 template <
typename TObject,
typename TValue>
72 static void setValueDelayed(TObject&
object,
const TValue& value,
const double delay,
Lock& lock, std::atomic<bool>& isSet);
75template <
typename TObject,
typename TValue>
This class implements a recursive lock object.
Definition Lock.h:31
This class implements a scoped lock object for recursive lock objects.
Definition Lock.h:147
This class implements tests for the Thread class.
Definition TestThread.h:34
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Tests all functions.
static bool testWaitForValueWithoutLock(const double testDuration)
Tests to waitForValue() function without lock object.
static bool testWaitForValueWithLock(const double testDuration)
Tests to waitForValue() function with lock object.
static void setValueDelayed(TObject &object, const TValue &value, const double delay, Lock &lock, std::atomic< bool > &isSet)
Sets a parameter to a specified value after a specified delay.
Definition TestThread.h:76
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
static void sleep(unsigned int ms)
Sleeps the calling thread for a given time.
This class implements a timestamp.
Definition Timestamp.h:63
static constexpr int64_t seconds2milliseconds(const double seconds)
Converts seconds to milliseconds.
Definition Timestamp.h:664
bool hasTimePassed(const double seconds, const Timestamp ¤tTimestamp=Timestamp(true)) const
Returns whether a specified amount of time has passed since this timestamp.
Definition Timestamp.h:546
The namespace covering the entire Ocean framework.
Definition Accessor.h:15