| Index: base/task_scheduler/scheduler_worker.h
|
| diff --git a/base/task_scheduler/scheduler_worker.h b/base/task_scheduler/scheduler_worker.h
|
| index 497d5dd1c6daa880566a14c60ec378f766d31fce..0fc595d4e48ad5347b9d3ba7baeca653fdd43fd6 100644
|
| --- a/base/task_scheduler/scheduler_worker.h
|
| +++ b/base/task_scheduler/scheduler_worker.h
|
| @@ -42,7 +42,7 @@ class BASE_EXPORT SchedulerWorker
|
| public:
|
| // Delegate interface for SchedulerWorker. The methods are always called from
|
| // the thread managed by the SchedulerWorker instance.
|
| - class Delegate {
|
| + class BASE_EXPORT Delegate {
|
| public:
|
| virtual ~Delegate() = default;
|
|
|
| @@ -68,6 +68,11 @@ class BASE_EXPORT SchedulerWorker
|
| // worker's WakeUp() method is called.
|
| virtual TimeDelta GetSleepTimeout() = 0;
|
|
|
| + // Called by a thread to wait for work. Override this method if the thread
|
| + // in question needs special handling to go to sleep. |wake_up_event| is a
|
| + // manually resettable event and is signaled on SchedulerWorker::WakeUp()
|
| + virtual void WaitForWork(WaitableEvent* wake_up_event);
|
| +
|
| // Called by a thread if it is allowed to detach if the last call to
|
| // GetWork() returned nullptr.
|
| //
|
|
|