rippled
|
Public Member Functions | |
void | processTask (int instance) override |
Perform a task. More... | |
Public Attributes | |
std::condition_variable | cv |
std::mutex | mut |
int | count = 0 |
Definition at line 107 of file Workers_test.cpp.
|
overridevirtual |
Perform a task.
The call is made on a thread owned by Workers. It is important that you only process one task from inside your callback. Each call to addTask will result in exactly one call to processTask.
instance | The worker thread instance. |
Implements ripple::Workers::Callback.
Definition at line 110 of file Workers_test.cpp.
std::condition_variable ripple::Workers_test::TestCallback::cv |
Definition at line 117 of file Workers_test.cpp.
std::mutex ripple::Workers_test::TestCallback::mut |
Definition at line 118 of file Workers_test.cpp.
int ripple::Workers_test::TestCallback::count = 0 |
Definition at line 119 of file Workers_test.cpp.