// Return whether to cancel the current thread.
virtual bool
- should_cancel_thread() = 0;
+ should_cancel_thread(int thread_number) = 0;
protected:
// Get the Workqueue.
// Return whether to cancel a thread.
bool
- should_cancel_thread();
+ should_cancel_thread(int thread_number);
// Process all tasks. This keeps running until told to cancel.
void