From eae9c0623d1800201739b4be146649103a45cd93 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Tue, 11 Jan 2011 00:50:59 +0000 Subject: Order function definitions in base/ according to the header. BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6085015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70975 0039d316-1c4b-4281-b951-d872f2087c98 --- base/synchronization/waitable_event_posix.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'base/synchronization') 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. -- cgit v1.1