Home | History | Annotate | Download | only in base

Lines Matching defs:Delegate

15 // a new thread, and execute the Delegate's virtual Run() in this new thread
21 // Start() having been called (and a thread never created). The Delegate
29 // class MyThreadRunner : public DelegateSimpleThread::Delegate { ... };
56 class SimpleThread : public PlatformThread::Delegate {
88 // We follow the PlatformThread Delegate interface.
121 class Delegate {
123 Delegate() { }
124 virtual ~Delegate() { }
128 DelegateSimpleThread(Delegate* delegate,
130 : SimpleThread(name_prefix), delegate_(delegate) { }
131 DelegateSimpleThread(Delegate* delegate,
134 : SimpleThread(name_prefix, options), delegate_(delegate) { }
139 Delegate* delegate_;
147 // You just call AddWork() to add a delegate to the list of work to be done.
151 class DelegateSimpleThreadPool : public DelegateSimpleThread::Delegate {
153 typedef DelegateSimpleThread::Delegate Delegate;
169 // Delegate* should always be a valid pointer, NULL is reserved internally.
170 void AddWork(Delegate* work, int repeat_count);
171 void AddWork(Delegate* work) {
175 // We implement the Delegate interface, for running our internal threads.
182 std::queue<Delegate*> delegates_;