summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 19:55:18 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 19:55:18 +0000
commit91a55b979b98d4dd69c7dcf61bc408ae230efab1 (patch)
tree3be3f505dd3d5609eaaae5c0189892fa30302885
parent104b62b9e97c44388a2094235e471f894b94ee39 (diff)
downloadchromium_src-91a55b979b98d4dd69c7dcf61bc408ae230efab1.zip
chromium_src-91a55b979b98d4dd69c7dcf61bc408ae230efab1.tar.gz
chromium_src-91a55b979b98d4dd69c7dcf61bc408ae230efab1.tar.bz2
Improve sleep resolution in process_util_linux.
Review URL: http://codereview.chromium.org/13750 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6814 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/process_util_linux.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc
index 7b8e411..8109032 100644
--- a/base/process_util_linux.cc
+++ b/base/process_util_linux.cc
@@ -12,6 +12,7 @@
#include "base/file_util.h"
#include "base/logging.h"
+#include "base/platform_thread.h"
#include "base/string_tokenizer.h"
#include "base/string_util.h"
#include "base/time.h"
@@ -257,8 +258,7 @@ bool WaitForProcessesToExit(const std::wstring& executable_name,
result = true;
break;
}
- // TODO(port): Improve resolution
- sleep(1);
+ PlatformThread::Sleep(100);
} while ((base::Time::Now() - end_time) > base::TimeDelta());
return result;