OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) | 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) |
4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "wtf/Threading.h" | 31 #include "wtf/Threading.h" |
32 | 32 |
33 #if OS(POSIX) | 33 #if OS(POSIX) |
34 | 34 |
| 35 #include <errno.h> |
| 36 #include <limits.h> |
| 37 #include <sched.h> |
| 38 #include <sys/time.h> |
35 #include "wtf/CurrentTime.h" | 39 #include "wtf/CurrentTime.h" |
36 #include "wtf/DateMath.h" | 40 #include "wtf/DateMath.h" |
37 #include "wtf/HashMap.h" | 41 #include "wtf/HashMap.h" |
38 #include "wtf/StdLibExtras.h" | 42 #include "wtf/StdLibExtras.h" |
39 #include "wtf/ThreadSpecific.h" | 43 #include "wtf/ThreadSpecific.h" |
40 #include "wtf/ThreadingPrimitives.h" | 44 #include "wtf/ThreadingPrimitives.h" |
41 #include "wtf/WTFThreadData.h" | 45 #include "wtf/WTFThreadData.h" |
42 #include "wtf/dtoa/double-conversion.h" | 46 #include "wtf/dtoa/double-conversion.h" |
43 #include <errno.h> | |
44 #include <limits.h> | |
45 #include <sched.h> | |
46 #include <sys/time.h> | |
47 | 47 |
48 #if OS(MACOSX) | 48 #if OS(MACOSX) |
49 #include <objc/objc-auto.h> | 49 #include <objc/objc-auto.h> |
50 #endif | 50 #endif |
51 | 51 |
52 #if OS(LINUX) | 52 #if OS(LINUX) |
53 #include <sys/syscall.h> | 53 #include <sys/syscall.h> |
54 #endif | 54 #endif |
55 | 55 |
56 #if OS(LINUX) || OS(ANDROID) | 56 #if OS(LINUX) || OS(ANDROID) |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 243 } |
244 | 244 |
245 void willCreateThread() { | 245 void willCreateThread() { |
246 s_threadCreated = true; | 246 s_threadCreated = true; |
247 } | 247 } |
248 #endif | 248 #endif |
249 | 249 |
250 } // namespace WTF | 250 } // namespace WTF |
251 | 251 |
252 #endif // OS(POSIX) | 252 #endif // OS(POSIX) |
OLD | NEW |