Lines Matching defs:Watch
14 struct ObjectWatcher::Watch : public Task {
50 Watch* watch = new Watch;
51 watch->watcher = this;
52 watch->object = object;
53 watch->origin_loop = MessageLoop::current();
54 watch->delegate = delegate;
55 watch->did_signal = false;
61 if (!RegisterWaitForSingleObject(&watch->wait_object, object, DoneWaiting,
62 watch, INFINITE, wait_flags)) {
64 delete watch;
68 watch_ = watch;
95 // If the watch has been posted, then we need to make sure it knows not to do
99 // If DoneWaiting was called, then the watch would have been posted as a
122 Watch* watch = static_cast<Watch*>(param);
125 watch->did_signal = true;
130 watch->origin_loop->PostTask(FROM_HERE, watch);
134 // Need to shutdown the watch so that we don't try to access the MessageLoop