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

Side by Side Diff: src/base/platform/platform-win32.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, 7 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 unified diff | Download patch
« no previous file with comments | « src/base/platform/platform-posix.cc ('k') | test/cctest/test-threads.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Platform-specific code for Win32. 5 // Platform-specific code for Win32.
6 6
7 // Secure API functions are not available using MinGW with msvcrt.dll 7 // Secure API functions are not available using MinGW with msvcrt.dll
8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to 8 // on Windows XP. Make sure MINGW_HAS_SECURE_API is not defined to
9 // disable definition of secure API functions in standard headers that 9 // disable definition of secure API functions in standard headers that
10 // would conflict with our own implementation. 10 // would conflict with our own implementation.
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 return TlsGetValue(static_cast<DWORD>(key)); 1377 return TlsGetValue(static_cast<DWORD>(key));
1378 } 1378 }
1379 1379
1380 1380
1381 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 1381 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
1382 BOOL result = TlsSetValue(static_cast<DWORD>(key), value); 1382 BOOL result = TlsSetValue(static_cast<DWORD>(key), value);
1383 USE(result); 1383 USE(result);
1384 DCHECK(result); 1384 DCHECK(result);
1385 } 1385 }
1386 1386
1387 1387 } // namespace base
1388 1388 } // namespace v8
1389 void Thread::YieldCPU() {
1390 Sleep(0);
1391 }
1392
1393 } } // namespace v8::base
OLDNEW
« no previous file with comments | « src/base/platform/platform-posix.cc ('k') | test/cctest/test-threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698