| 
    rippled
    
   | 
 
Called to perform tasks as needed. More...
#include <Workers.h>

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.   | |
      
  | 
  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::Workers_test::TestCallback, and ripple::JobQueue.