| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |