Index: base/synchronization/condition_variable_posix.cc |
diff --git a/base/synchronization/condition_variable_posix.cc b/base/synchronization/condition_variable_posix.cc |
index d86fd180ec7f3056dbf22cf0997826b04d7fdde3..a0c101309c2935120007ea57a97c6953c84c3299 100644 |
--- a/base/synchronization/condition_variable_posix.cc |
+++ b/base/synchronization/condition_variable_posix.cc |
@@ -73,7 +73,7 @@ void ConditionVariable::Wait() { |
#endif |
} |
-void ConditionVariable::TimedWait(const TimeDelta& max_time) { |
+bool ConditionVariable::TimedWait(const TimeDelta& max_time) { |
base::ThreadRestrictions::AssertWaitAllowed(); |
int64_t usecs = max_time.InMicroseconds(); |
struct timespec relative_time; |
@@ -122,6 +122,8 @@ void ConditionVariable::TimedWait(const TimeDelta& max_time) { |
#if DCHECK_IS_ON() |
user_lock_->CheckUnheldAndMark(); |
#endif |
+ |
+ return rv == ETIMEDOUT; |
} |
void ConditionVariable::Broadcast() { |