summaryrefslogtreecommitdiffstats
path: root/base/spin_wait.h
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-31 22:53:51 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-31 22:53:51 +0000
commita1b75b94f61d90054e3b432e8be3c897383450bd (patch)
tree22a388ee703fe9aa05aab3cb850e0012c3b501f8 /base/spin_wait.h
parentd117d35a46d16907c89b92e5ed03d40690fb8f81 (diff)
downloadchromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.zip
chromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.tar.gz
chromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.tar.bz2
Change code in base (primarily unit tests) to use Sleep(TimeDelta).
BUG=108171 TEST= Review URL: http://codereview.chromium.org/9055001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116065 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/spin_wait.h')
-rw-r--r--base/spin_wait.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/spin_wait.h b/base/spin_wait.h
index 1e31b14..b609ba5 100644
--- a/base/spin_wait.h
+++ b/base/spin_wait.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -44,7 +44,7 @@
kTimeout.InMilliseconds()) << "Timed out"; \
break; \
} \
- base::PlatformThread::Sleep(50); \
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
} \
} while (0)