Changeset 34810 in webkit for trunk/JavaScriptCore/wtf/ThreadSpecific.h
- Timestamp:
- Jun 26, 2008, 11:59:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadSpecific.h
r34380 r34810 53 53 void static destroy(void* ptr); 54 54 55 #if 0 // FIXME: Temporary disabled until the rest of multithreading support is in.56 55 #if USE(PTHREADS) || PLATFORM(WIN) 57 56 struct Data : Noncopyable { … … 64 63 pthread_key_t m_key; 65 64 #endif 66 67 #else // Temporary stub implementation.68 T m_data;69 #endif70 65 }; 71 72 #if 0 // FIXME: Temporary disabled until the rest of multithreading support is in.73 66 74 67 #if USE(PTHREADS) || PLATFORM(WIN) … … 112 105 #endif 113 106 114 #else // Temporary stub implementation.115 116 template<typename T>117 inline ThreadSpecific<T>::ThreadSpecific()118 : m_data()119 {120 }121 122 template<typename T>123 inline ThreadSpecific<T>::~ThreadSpecific()124 {125 }126 127 template<typename T>128 inline T* ThreadSpecific<T>::get()129 {130 return &m_data;131 }132 133 template<typename T>134 inline void ThreadSpecific<T>::set(T*)135 {136 }137 138 #endif139 140 107 template<typename T> 141 108 inline ThreadSpecific<T>::operator T*()
Note:
See TracChangeset
for help on using the changeset viewer.