#include "TestToolBox/CommonSources/ObjectLock.h"
#include "TestToolBox/ISynchronizer.h"
Go to the source code of this file.
Classes | |
class | TestToolBox::Synchronizer |
This class supports synchronization of parallel activities with a linear test sequence. More... | |
Defines | |
#define | TTB_SYNC() TestToolBox::Synchronizer::Get()->Sync (__FILE__,__LINE__) |
#define | TTB_WAIT_SYNC() TestToolBox::Synchronizer::Get()->WaitSync (__FILE__,__LINE__) |
Waits until the specified number of synchronization events has occured. | |
#define | TTB_SET_SYNC_TIMEOUT(in_timeoutMs) TestToolBox::Synchronizer::Get()->SetSyncTimeout (in_timeoutMs) |
Define the maximum time to wait for arriving synchronization events when calling TTB_WAIT_SYNC. | |
#define | TTB_INIT_SYNC(in_numSyncEventsToWaitFor) TestToolBox::Synchronizer::Get()->InitSync (in_numSyncEventsToWaitFor) |
Define the number of expected synchronization events for the next call of TTB_WAIT_SYNC. |
#define TTB_SYNC | ( | ) | TestToolBox::Synchronizer::Get()->Sync (__FILE__,__LINE__) |
Generate a single synchronization event. Typically this method is called when a part of your test environment has received some information from the object under test and has written relevant information to TestToolBox::TestEvents. By rising a sync event it is signalled to the test script that checking of results now is possible.