8 #ifndef META_OCEAN_TEST_TESTBASE_TEST_THREAD_H
9 #define META_OCEAN_TEST_TESTBASE_TEST_THREAD_H
41 static bool test(
const double testDuration);
69 template <
typename TObject,
typename TValue>
70 static void setValueDelayed(TObject&
object,
const TValue& value,
const double delay,
Lock& lock, std::atomic<bool>& isSet);
73 template <
typename TObject,
typename TValue>
78 #ifdef OCEAN_USE_GTEST
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:135
This class implements tests for the Thread class.
Definition: TestThread.h:33
static bool test(const double testDuration)
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:74
static void sleep(unsigned int ms)
Sleeps the calling thread for a given time.
This class implements a timestamp.
Definition: Timestamp.h:36
static constexpr int64_t seconds2milliseconds(const double seconds)
Converts seconds to milliseconds.
Definition: Timestamp.h:408
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:290
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15