|
rippled
|


Public Member Functions | |
| void | processTask (int instance) override |
| Perform a task. | |
Public Attributes | |
| std::condition_variable | cv |
| std::mutex | mut |
| int | count = 0 |
Definition at line 88 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 91 of file Workers_test.cpp.
| std::condition_variable ripple::Workers_test::TestCallback::cv |
Definition at line 98 of file Workers_test.cpp.
| std::mutex ripple::Workers_test::TestCallback::mut |
Definition at line 99 of file Workers_test.cpp.
| int ripple::Workers_test::TestCallback::count = 0 |
Definition at line 100 of file Workers_test.cpp.