diff options
Diffstat (limited to 'base/synchronization/waitable_event_posix.cc')
-rw-r--r-- | base/synchronization/waitable_event_posix.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/base/synchronization/waitable_event_posix.cc b/base/synchronization/waitable_event_posix.cc index 9cbc03a..ae03ead 100644 --- a/base/synchronization/waitable_event_posix.cc +++ b/base/synchronization/waitable_event_posix.cc @@ -149,6 +149,10 @@ class SyncWaiter : public WaitableEvent::Waiter { base::ConditionVariable cv_; }; +bool WaitableEvent::Wait() { + return TimedWait(TimeDelta::FromSeconds(-1)); +} + bool WaitableEvent::TimedWait(const TimeDelta& max_time) { const Time end_time(Time::Now() + max_time); const bool finite_time = max_time.ToInternalValue() >= 0; @@ -204,13 +208,6 @@ bool WaitableEvent::TimedWait(const TimeDelta& max_time) { } } -bool WaitableEvent::Wait() { - return TimedWait(TimeDelta::FromSeconds(-1)); -} - -// ----------------------------------------------------------------------------- - - // ----------------------------------------------------------------------------- // Synchronous waiting on multiple objects. |