Lines Matching refs: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 { ... };
59 class BASE_EXPORT SimpleThread : public PlatformThread::Delegate {
112 // Overridden from PlatformThread::Delegate:
127 class BASE_EXPORT Delegate {
129 Delegate() { }
130 virtual ~Delegate() { }
134 DelegateSimpleThread(Delegate* delegate,
136 DelegateSimpleThread(Delegate* delegate,
144 Delegate* delegate_;
157 : public DelegateSimpleThread::Delegate {
159 typedef DelegateSimpleThread::Delegate Delegate;
173 // Delegate* should always be a valid pointer, NULL is reserved internally.
174 void AddWork(Delegate* work, int repeat_count);
175 void AddWork(Delegate* work) {
179 // We implement the Delegate interface, for running our internal threads.
186 std::queue<Delegate*> delegates_;