Lines Matching refs:ThreadWatcher

7 // ThreadWatcher class which performs health check on threads that would like to
9 // all active ThreadWatcher objects.
11 // ThreadWatcher class sends ping message to the watched thread and the watched
15 // TODO(raman): ThreadWatcher can detect hung threads. If a hung thread is
38 // ThreadWatcher::StartWatching(
71 class ThreadWatcher {
74 // as a workaround that limitation for invoking ThreadWatcher::StartWatching.
102 // will create ThreadWatcher object for the given |thread_id|, |thread_name|.
112 // will register that ThreadWatcher object and activate the thread watching of
138 // Construct a ThreadWatcher for the given |thread_id|. |sleep_time| is the
141 explicit ThreadWatcher(const WatchingParams& params);
143 virtual ~ThreadWatcher();
294 // We use this factory to create callback tasks for ThreadWatcher object. We
297 base::WeakPtrFactory<ThreadWatcher> weak_ptr_factory_;
299 DISALLOW_COPY_AND_ASSIGN(ThreadWatcher);
309 typedef std::map<content::BrowserThread::ID, ThreadWatcher*> RegistrationList;
334 // ThreadWatcher monitors five browser threads (i.e., UI, IO, DB, FILE,
392 // Register() stores a pointer to the given ThreadWatcher in a global map.
393 static void Register(ThreadWatcher* watcher);
395 // This method returns true if the ThreadWatcher object is registerd.
421 // Destructor deletes all registered ThreadWatcher instances.
451 // This method calls ThreadWatcher::StartWatching() to perform health check on
465 // The Find() method can be used to test to see if a given ThreadWatcher was
467 static ThreadWatcher* Find(const content::BrowserThread::ID& thread_id);
499 // Map of all registered watched threads, from thread_id to ThreadWatcher.