|
VICI
0.11.815
Visual Chart Interpreter
|
Responsible for queuing TestEvents. More...
#include <vici/testmgr.h>
Public Member Functions | |
| ~TestEventQueue () | |
| Destructor. | |
| void | enqueueEvent (TestEvent *) |
| Place the event on the queue. More... | |
Static Public Member Functions | |
| static TestEventQueue & | instance () |
| Get reference to the singleton queue object. More... | |
| static void | event (csr id) |
| Create a TestEvent, queue it, and wait for it to be processed. More... | |
Public Attributes | |
| std::mutex | eventMx |
| Control access to the queue. | |
| std::list< TestEvent * > | events |
| The queue. | |
| std::set< std::string > | runningEvents |
| The set of events being handled. | |
| std::mutex | functionsMx |
| Control access to list of running events. | |
| std::condition_variable | eventCV |
| Wait for event to be queued or processed. | |
Protected Member Functions | |
| TestEventQueue () | |
| Constructor. | |
Responsible for queuing TestEvents.
The queue provides a condition variable that allows the test case to wait until an event has been queued.
| void TestEventQueue::enqueueEvent | ( | TestEvent * | ev | ) |
Place the event on the queue.
| ev | The TestEvent object to place on the queue |
|
static |
Create a TestEvent, queue it, and wait for it to be processed.
| id | The identity for the event |
|
static |
Get reference to the singleton queue object.
1.8.5