OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Jian Li <jianli@chromium.org> | 3 * Copyright (C) 2009 Jian Li <jianli@chromium.org> |
4 * Copyright (C) 2012 Patrick Gansterer <paroga@paroga.com> | 4 * Copyright (C) 2012 Patrick Gansterer <paroga@paroga.com> |
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 26 matching lines...) Expand all Loading... |
37 * only once. | 37 * only once. |
38 * This semantic discrepancy does not impose any problem because nowhere in | 38 * This semantic discrepancy does not impose any problem because nowhere in |
39 * WebKit the repeated call bahavior is utilized. | 39 * WebKit the repeated call bahavior is utilized. |
40 */ | 40 */ |
41 | 41 |
42 #ifndef WTF_ThreadSpecific_h | 42 #ifndef WTF_ThreadSpecific_h |
43 #define WTF_ThreadSpecific_h | 43 #define WTF_ThreadSpecific_h |
44 | 44 |
45 #include "wtf/Allocator.h" | 45 #include "wtf/Allocator.h" |
46 #include "wtf/Noncopyable.h" | 46 #include "wtf/Noncopyable.h" |
47 #include "wtf/Partitions.h" | |
48 #include "wtf/StdLibExtras.h" | 47 #include "wtf/StdLibExtras.h" |
49 #include "wtf/WTF.h" | 48 #include "wtf/WTF.h" |
50 #include "wtf/WTFExport.h" | 49 #include "wtf/WTFExport.h" |
| 50 #include "wtf/allocator/Partitions.h" |
51 | 51 |
52 #if OS(POSIX) | 52 #if OS(POSIX) |
53 #include <pthread.h> | 53 #include <pthread.h> |
54 #elif OS(WIN) | 54 #elif OS(WIN) |
55 #include <windows.h> | 55 #include <windows.h> |
56 #endif | 56 #endif |
57 | 57 |
58 namespace WTF { | 58 namespace WTF { |
59 | 59 |
60 #if OS(WIN) | 60 #if OS(WIN) |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 inline T& ThreadSpecific<T>::operator*() | 279 inline T& ThreadSpecific<T>::operator*() |
280 { | 280 { |
281 return *operator T*(); | 281 return *operator T*(); |
282 } | 282 } |
283 | 283 |
284 } // namespace WTF | 284 } // namespace WTF |
285 | 285 |
286 using WTF::ThreadSpecific; | 286 using WTF::ThreadSpecific; |
287 | 287 |
288 #endif // WTF_ThreadSpecific_h | 288 #endif // WTF_ThreadSpecific_h |
OLD | NEW |