| 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 24 matching lines...) Expand all Loading... |
| 35 * repeatedly if there is still non-NULL value associated with the function. | 35 * repeatedly if there is still non-NULL value associated with the function. |
| 36 * @ In Windows native implementation, the destructor function will be called | 36 * @ In Windows native implementation, the destructor function will be called |
| 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 "platform/wtf/Allocator.h" |
| 46 #include "wtf/Noncopyable.h" | 46 #include "platform/wtf/Noncopyable.h" |
| 47 #include "wtf/StackUtil.h" | 47 #include "platform/wtf/StackUtil.h" |
| 48 #include "wtf/StdLibExtras.h" | 48 #include "platform/wtf/StdLibExtras.h" |
| 49 #include "wtf/WTF.h" | 49 #include "platform/wtf/WTF.h" |
| 50 #include "wtf/WTFExport.h" | 50 #include "platform/wtf/WTFExport.h" |
| 51 #include "wtf/allocator/PartitionAllocator.h" | 51 #include "platform/wtf/allocator/PartitionAllocator.h" |
| 52 #include "wtf/allocator/Partitions.h" | 52 #include "platform/wtf/allocator/Partitions.h" |
| 53 | 53 |
| 54 #if OS(POSIX) | 54 #if OS(POSIX) |
| 55 #include <pthread.h> | 55 #include <pthread.h> |
| 56 #elif OS(WIN) | 56 #elif OS(WIN) |
| 57 #include <windows.h> | 57 #include <windows.h> |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 namespace WTF { | 60 namespace WTF { |
| 61 | 61 |
| 62 #if OS(WIN) | 62 #if OS(WIN) |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 template <typename T> | 307 template <typename T> |
| 308 inline T& ThreadSpecific<T>::operator*() { | 308 inline T& ThreadSpecific<T>::operator*() { |
| 309 return *operator T*(); | 309 return *operator T*(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 } // namespace WTF | 312 } // namespace WTF |
| 313 | 313 |
| 314 using WTF::ThreadSpecific; | 314 using WTF::ThreadSpecific; |
| 315 | 315 |
| 316 #endif // WTF_ThreadSpecific_h | 316 #endif // WTF_ThreadSpecific_h |
| OLD | NEW |