Home | History | Annotate | Download | only in base

Lines Matching refs:Worker

23 // SignalThread - Base class for worker threads.  The main thread should call
26 // Cancellation: Call Release(true), to abort the worker thread.
45 // Context: Main Thread. Call before Start to change the worker's name.
48 // Context: Main Thread. Call to begin the worker thread.
51 // Context: Main Thread. If the worker thread is not running, deletes the
52 // object immediately. Otherwise, asks the worker thread to abort processing,
53 // and schedules the object to be deleted once the worker exits.
58 // Context: Main Thread. If the worker thread is complete, deletes the
60 // the worker thread completes. SignalWorkDone will be signalled.
71 Thread* worker() { return &worker_; }
76 // Context: Worker Thread. Subclass should override to do work.
79 // Context: Worker Thread. Subclass should call periodically to
83 // Context: Worker Thread. Subclass should override when extra work is
84 // needed to abort the worker thread.
103 class Worker : public Thread {
105 explicit Worker(SignalThread* parent) : parent_(parent) {}
106 ~Worker() override;
112 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Worker);
142 Worker worker_;