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 29 matching lines...) Expand all Loading... |
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/StdLibExtras.h" | 47 #include "wtf/StdLibExtras.h" |
48 #include "wtf/WTF.h" | 48 #include "wtf/WTF.h" |
49 #include "wtf/WTFExport.h" | 49 #include "wtf/WTFExport.h" |
| 50 #include "wtf/allocator/PartitionAllocator.h" |
50 #include "wtf/allocator/Partitions.h" | 51 #include "wtf/allocator/Partitions.h" |
51 | 52 |
52 #if OS(POSIX) | 53 #if OS(POSIX) |
53 #include <pthread.h> | 54 #include <pthread.h> |
54 #elif OS(WIN) | 55 #elif OS(WIN) |
55 #include <windows.h> | 56 #include <windows.h> |
56 #endif | 57 #endif |
57 | 58 |
58 namespace WTF { | 59 namespace WTF { |
59 | 60 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 template <typename T> | 278 template <typename T> |
278 inline T& ThreadSpecific<T>::operator*() { | 279 inline T& ThreadSpecific<T>::operator*() { |
279 return *operator T*(); | 280 return *operator T*(); |
280 } | 281 } |
281 | 282 |
282 } // namespace WTF | 283 } // namespace WTF |
283 | 284 |
284 using WTF::ThreadSpecific; | 285 using WTF::ThreadSpecific; |
285 | 286 |
286 #endif // WTF_ThreadSpecific_h | 287 #endif // WTF_ThreadSpecific_h |
OLD | NEW |