8#ifndef META_OCEAN_TEST_TESTBASE_TEST_SIGNAL_H
9#define META_OCEAN_TEST_TESTBASE_TEST_SIGNAL_H
This class implements a signal.
Definition Signal.h:31
This class implements a simple helper thread simulating an async function execution.
Definition TestSignal.h:74
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:111
void threadRun() override
Thread function.
Signal signalAsyncStart_
The signal for starting the async function.
Definition TestSignal.h:108
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:39
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:64
void threadRun() override
Thread function.
const HighPerformanceTimer & timer_
The timer providing the same time value for all threads.
Definition TestSignal.h:61
Signal & signal_
Signal to be used.
Definition TestSignal.h:67
This class implements signal tests.
Definition TestSignal.h:32
static bool testSubsetSignalsTimeout()
Tests the subset of multiple signals with timeout.
static bool testMultipleSignals()
Tests the set of multiple signals.
static bool test(const double testDuration, const TestSelector &selector=TestSelector())
Tests the entire signal functionalities.
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.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a thread.
Definition Thread.h:115
The namespace covering the entire Ocean framework.
Definition Accessor.h:15