| Index: mojo/edk/system/waiter.cc
|
| diff --git a/mojo/edk/system/waiter.cc b/mojo/edk/system/waiter.cc
|
| index f9047cb41f7646ce9311f3b622ab4f1eed2785d7..f18edc8e815bcbff67d5b906e24f28f09d669743 100644
|
| --- a/mojo/edk/system/waiter.cc
|
| +++ b/mojo/edk/system/waiter.cc
|
| @@ -82,17 +82,18 @@ MojoResult Waiter::Wait(MojoDeadline deadline, uint32_t* context) {
|
| return awake_result_;
|
| }
|
|
|
| -void Waiter::Awake(MojoResult result, uintptr_t context) {
|
| +bool Waiter::Awake(MojoResult result, uintptr_t context) {
|
| base::AutoLock locker(lock_);
|
|
|
| if (awoken_)
|
| - return;
|
| + return true;
|
|
|
| awoken_ = true;
|
| awake_result_ = result;
|
| awake_context_ = context;
|
| cv_.Signal();
|
| // |cv_.Wait()|/|cv_.TimedWait()| will return after |lock_| is released.
|
| + return true;
|
| }
|
|
|
| } // namespace system
|
|
|