8 #ifndef META_OCEAN_TEST_TESTBASE_TEST_SIGNAL_H
9 #define META_OCEAN_TEST_TESTBASE_TEST_SIGNAL_H
120 static bool test(
const double testDuration);
This class implements a signal.
Definition: Signal.h:31
This class implements a simple helper thread simulating an async function execution.
Definition: TestSignal.h:73
void asyncFunction()
The async function.
~AsyncFunctionThread() override
Destructs the thread object and stops any ongoing async function as fast as possible.
AsyncFunctionThread()
Creates a new thread object and starts the thread.
Signal signalAsyncStopped_
The signal for the finished async function.
Definition: TestSignal.h:110
void threadRun() override
Thread function.
Signal signalAsyncStart_
The signal for starting the async function.
Definition: TestSignal.h:107
void startAsyncFunction()
Starts the async function.
This class implements a simple helper thread allowing to invoke/pulse a signal after a specified time...
Definition: TestSignal.h:38
SignalThread(const HighPerformanceTimer &timer, const double timeout, Signal &signal)
Creates a new thread object.
const double timeout_
Timeout for the thread, in seconds with range (0, infinity)
Definition: TestSignal.h:63
void threadRun() override
Thread function.
const HighPerformanceTimer & timer_
The timer providing the same time value for all threads.
Definition: TestSignal.h:60
Signal & signal_
Signal to be used.
Definition: TestSignal.h:66
This class implements signal tests.
Definition: TestSignal.h:31
static bool testSubsetSignalsTimeout()
Tests the subset of multiple signals with timeout.
static bool testMultipleSignals()
Tests the set of multiple signals.
static bool testSubsetSignalsStandard()
Tests the subset of multiple signals without timeout.
static bool testSingleSignalTimeout()
Tests one signal with timeout.
static bool testSingleSignalStandard()
Tests one signal without timeout.
static bool testSingleSignalLoop()
Tests one signal in a loop.
static bool testAsyncFunction(const double testDuration)
Tests a pulse, wait, release cycle via an async function execution.
static bool testSignalBasics()
Tests basic signal functions.
static bool test(const double testDuration)
Tests the entire signal functionalities.
This class implements a thread.
Definition: Thread.h:115
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15