rippled
|
Called to perform tasks as needed. More...
Public Member Functions | |
virtual | ~Callback ()=default |
Callback ()=default | |
Callback (Callback const &)=delete | |
Callback & | operator= (Callback const &)=delete |
virtual void | processTask (int instance)=0 |
Perform a task. More... | |
|
virtualdefault |
|
default |
|
delete |
|
pure virtual |
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. |
Implemented in ripple::JobQueue, ripple::Workers_test::TestCallback, and ripple::NodeStore::TaskQueue.