Lines Matching refs:global_
191 ThreadWatcherList* ThreadWatcherList::global_ = NULL; member in ThreadWatcherList
198 CHECK(!global_); in ThreadWatcherList()
199 global_ = this; in ThreadWatcherList()
206 DCHECK(this == global_); in ~ThreadWatcherList()
207 global_ = NULL; in ~ThreadWatcherList()
212 if (!global_) in Register()
214 base::AutoLock auto_lock(global_->lock_); in Register()
215 DCHECK(!global_->PreLockedFind(watcher->thread_id())); in Register()
216 global_->registered_[watcher->thread_id()] = watcher; in Register()
263 if (!global_) in StopWatchingAll()
272 NewRunnableMethod(global_, &ThreadWatcherList::DeleteAll)); in StopWatchingAll()
280 if (!global_) in RemoveNotifications()
282 base::AutoLock auto_lock(global_->lock_); in RemoveNotifications()
283 global_->registrar_.RemoveAll(); in RemoveNotifications()
319 if (!global_) in WakeUpAll()
322 for (RegistrationList::iterator it = global_->registered_.begin(); in WakeUpAll()
323 global_->registered_.end() != it; in WakeUpAll()
330 if (!global_) in Find()
332 base::AutoLock auto_lock(global_->lock_); in Find()
333 return global_->PreLockedFind(thread_id); in Find()