Home | History | Annotate | Download | only in synchronization

Lines Matching defs:Flag

20 // Since the wait can be canceled, we have a thread-safe Flag object which is
22 // flag before going onto the next stage. Since the wait may only be canceled in
27 // A thread-safe, reference-counted, write-once flag.
29 class Flag : public RefCountedThreadSafe<Flag> {
31 Flag() { flag_ = false; }
54 AsyncWaiter(MessageLoop* message_loop, Task* task, Flag* flag)
57 flag_(flag) { }
85 scoped_refptr<Flag> flag_;
95 AsyncCallbackTask(Flag* flag, WaitableEventWatcher::Delegate* delegate,
97 : flag_(flag),
115 scoped_refptr<Flag> flag_;
144 // case, we won't know that we have finished watching, expect that the Flag
157 cancel_flag_ = new Flag;
210 // We set the flag in case the task hasn't yet run. The flag will stop the
212 // reference to the flag and it will be deleted immedately after.
230 // a tag which is good for the lifetime of this handle: the Flag. Since we
231 // have a reference to the Flag, its memory cannot be reused while this object
233 // which shares a Flag pointer, we have a real match.
246 // not have run yet, so we set the flag to tell it not to bother enqueuing the
253 // hasn't yet run, the flag will stop the delegate from getting called. (This