Lines Matching refs:waiter
9 #include "mojo/system/waiter.h"
59 Waiter* waiter() { return &waiter_; }
80 Waiter waiter_; // Thread-safe.
100 thread.waiter()->Awake(0);
109 thread.waiter()->Awake(MOJO_RESULT_CANCELLED);
122 thread.waiter()->Awake(1);
135 thread.waiter()->Awake(1);
158 thread.waiter()->Awake(0);
167 thread.waiter()->Awake(MOJO_RESULT_CANCELLED);
180 thread.waiter()->Awake(1);
193 thread.waiter()->Awake(1);
205 Waiter waiter;
207 waiter.Init();
209 EXPECT_EQ(MOJO_RESULT_DEADLINE_EXCEEDED, waiter.Wait(0));
213 waiter.Init();
216 waiter.Wait(static_cast<MojoDeadline>(2 * kEpsilonMicros)));
221 waiter.Init();
224 waiter.Wait(static_cast<MojoDeadline>(5 * kEpsilonMicros)));
238 thread.waiter()->Awake(0);
239 thread.waiter()->Awake(1);
247 thread.waiter()->Awake(1);
249 thread.waiter()->Awake(0);
258 thread.waiter()->Awake(10);
261 thread.waiter()->Awake(20);
272 thread.waiter()->Awake(MOJO_RESULT_FAILED_PRECONDITION);
275 thread.waiter()->Awake(0);