Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: src/base/platform/platform-posix.cc

Issue 1116853002: [base] Drop obsolete Thread::YieldCPU. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Of course also remove it from the cctest Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/platform/platform.h ('k') | src/base/platform/platform-win32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/platform-posix.cc
diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc
index 8fb40b0bc0c6b200d87782b6e2b3d89de44e3a22..78b8d782580e4a2897aa0da8e7196bef7aed4f4b 100644
--- a/src/base/platform/platform-posix.cc
+++ b/src/base/platform/platform-posix.cc
@@ -631,13 +631,6 @@ void Thread::Join() {
}
-void Thread::YieldCPU() {
- int result = sched_yield();
- DCHECK_EQ(0, result);
- USE(result);
-}
-
-
static Thread::LocalStorageKey PthreadKeyToLocalKey(pthread_key_t pthread_key) {
#if V8_OS_CYGWIN
// We need to cast pthread_key_t to Thread::LocalStorageKey in two steps
@@ -761,5 +754,5 @@ void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
USE(result);
}
-
-} } // namespace v8::base
+} // namespace base
+} // namespace v8
« no previous file with comments | « src/base/platform/platform.h ('k') | src/base/platform/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698