Lines Matching refs:Watcher
43 - // If the MessageLoopForIO is deleted before Watcher::StartWatching() runs,
45 - // Watcher::StartWatching() runs but before the DeleteSoon task runs,
46 - // |watcher_| is deleted from Watcher::WillDestroyCurrentMessageLoop().
54 class FileDescriptorWatcher::Controller::Watcher
57 @@ -90,6 +78,58 @@ class FileDescriptorWatcher::Controller::Watcher
58 DISALLOW_COPY_AND_ASSIGN(Watcher);
86 + // T2 (io) Watcher::StartWatching()
93 + [](Watcher *watcher, ScopedClosureRunner closure) {
113 FileDescriptorWatcher::Controller::Watcher::Watcher(
116 @@ -150,11 +190,19 @@ void FileDescriptorWatcher::Controller::Watcher::
120 - // A Watcher is owned by a Controller. When the Controller is deleted, it
121 - // transfers ownership of the Watcher to a delete task posted to the
123 - // runs, the following line takes care of deleting the Watcher.
126 + // |controller_| can be accessed directly when Watcher runs on the same
130 + // If the Watcher and the Controller live on different threads, delete
131 + // |this| synchronously. Pending tasks bound to an unretained Watcher* will
150 - FROM_HERE, BindOnce(&Watcher::StartWatching, Unretained(watcher_.get())));
159 + FROM_HERE, Bind(&Watcher::StartWatching, Unretained(watcher_.get())));