diff options
author | idana@chromium.org <idana@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 18:18:47 +0000 |
---|---|---|
committer | idana@chromium.org <idana@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 18:18:47 +0000 |
commit | d6b401bed87fa50d1fc0993c04ee7ee992dd6627 (patch) | |
tree | 4584f178e425af5c274b91a2ca946a7477d59185 /chrome/browser | |
parent | a3eee215c50087fe848ea6ab2b66ebf4a57988fa (diff) | |
download | chromium_src-d6b401bed87fa50d1fc0993c04ee7ee992dd6627.zip chromium_src-d6b401bed87fa50d1fc0993c04ee7ee992dd6627.tar.gz chromium_src-d6b401bed87fa50d1fc0993c04ee7ee992dd6627.tar.bz2 |
Avoid calling PlatformThread::Sleep(1) from event_sys_unittests.cc
BUG=21833
Review URL: http://codereview.chromium.org/360040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/sync/util/event_sys_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sync/util/event_sys_unittest.cc b/chrome/browser/sync/util/event_sys_unittest.cc index 9afd64b..0686977 100644 --- a/chrome/browser/sync/util/event_sys_unittest.cc +++ b/chrome/browser/sync/util/event_sys_unittest.cc @@ -224,7 +224,7 @@ class ThreadTester : public EventListener<TestEvent>, remove_event_mutex_.Release(); remove_event_.Broadcast(); - PlatformThread::Sleep(1); + PlatformThread::YieldCurrentThread(); for (size_t i = 0; i < threads_.size(); i++) { if (threads_[i].completed) |