| OLD | NEW |
| 1 //===------------------------- thread.cpp----------------------------------===// | 1 //===------------------------- thread.cpp----------------------------------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is dual licensed under the MIT and the University of Illinois Open | 5 // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 // Source Licenses. See LICENSE.TXT for details. | 6 // Source Licenses. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 | 9 |
| 10 #include "__config" | 10 #include "__config" |
| 11 #ifndef _LIBCPP_HAS_NO_THREADS | 11 #ifndef _LIBCPP_HAS_NO_THREADS |
| 12 | 12 |
| 13 #include "thread" | 13 #include "thread" |
| 14 #include "exception" | 14 #include "exception" |
| 15 #include "vector" | 15 #include "vector" |
| 16 #include "future" | 16 #include "future" |
| 17 #include "limits" | 17 #include "limits" |
| 18 #include <sys/types.h> | 18 #include <sys/types.h> |
| 19 #if !defined(_WIN32) | 19 #if !defined(_WIN32) |
| 20 #if !defined(__sun__) && !defined(__linux__) && !defined(_AIX) | 20 #if !defined(__sun__) && !defined(__linux__) && !defined(_AIX) && !defined(__nat
ive_client__) // @LOCALMOD |
| 21 #include <sys/sysctl.h> | 21 #include <sys/sysctl.h> |
| 22 #endif // !__sun__ && !__linux__ && !_AIX | 22 #endif // !__sun__ && !__linux__ && !_AIX |
| 23 #include <unistd.h> | 23 #include <unistd.h> |
| 24 #endif // !_WIN32 | 24 #endif // !_WIN32 |
| 25 | 25 |
| 26 #if defined(__NetBSD__) | 26 #if defined(__NetBSD__) |
| 27 #pragma weak pthread_create // Do not create libpthread dependency | 27 #pragma weak pthread_create // Do not create libpthread dependency |
| 28 #endif | 28 #endif |
| 29 #if defined(_WIN32) | 29 #if defined(_WIN32) |
| 30 #include <windows.h> | 30 #include <windows.h> |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 void | 224 void |
| 225 __thread_struct::__make_ready_at_thread_exit(__assoc_sub_state* __s) | 225 __thread_struct::__make_ready_at_thread_exit(__assoc_sub_state* __s) |
| 226 { | 226 { |
| 227 __p_->__make_ready_at_thread_exit(__s); | 227 __p_->__make_ready_at_thread_exit(__s); |
| 228 } | 228 } |
| 229 | 229 |
| 230 _LIBCPP_END_NAMESPACE_STD | 230 _LIBCPP_END_NAMESPACE_STD |
| 231 | 231 |
| 232 #endif // !_LIBCPP_HAS_NO_THREADS | 232 #endif // !_LIBCPP_HAS_NO_THREADS |
| OLD | NEW |