Title: [107587] trunk/Source/_javascript_Core
- Revision
- 107587
- Author
- [email protected]
- Date
- 2012-02-13 11:05:27 -0800 (Mon, 13 Feb 2012)
Log Message
Remove obsolete #if from ThreadSpecific.h
https://bugs.webkit.org/show_bug.cgi?id=78485
Reviewed by Adam Roben.
Since alle platform use either pthread or Win32 for threading,
we can remove all PLATFORM() preprocessor statements.
* wtf/ThreadSpecific.h:
(ThreadSpecific):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (107586 => 107587)
--- trunk/Source/_javascript_Core/ChangeLog 2012-02-13 18:54:03 UTC (rev 107586)
+++ trunk/Source/_javascript_Core/ChangeLog 2012-02-13 19:05:27 UTC (rev 107587)
@@ -1,3 +1,16 @@
+2012-02-13 Patrick Gansterer <[email protected]>
+
+ Remove obsolete #if from ThreadSpecific.h
+ https://bugs.webkit.org/show_bug.cgi?id=78485
+
+ Reviewed by Adam Roben.
+
+ Since alle platform use either pthread or Win32 for threading,
+ we can remove all PLATFORM() preprocessor statements.
+
+ * wtf/ThreadSpecific.h:
+ (ThreadSpecific):
+
2012-02-13 Jessie Berlin <[email protected]>
Fix the Windows build.
Modified: trunk/Source/_javascript_Core/wtf/ThreadSpecific.h (107586 => 107587)
--- trunk/Source/_javascript_Core/wtf/ThreadSpecific.h 2012-02-13 18:54:03 UTC (rev 107586)
+++ trunk/Source/_javascript_Core/wtf/ThreadSpecific.h 2012-02-13 19:05:27 UTC (rev 107587)
@@ -77,12 +77,11 @@
// have exited). It's unlikely that any user of this call will be in that situation - and having
// a destructor defined can be confusing, given that it has such strong pre-requisites to work correctly.
~ThreadSpecific();
-
+
T* get();
void set(T*);
void static destroy(void* ptr);
-#if USE(PTHREADS) || PLATFORM(QT) || PLATFORM(GTK) || OS(WINDOWS)
struct Data {
WTF_MAKE_NONCOPYABLE(Data);
public:
@@ -94,7 +93,6 @@
void (*destructor)(void*);
#endif
};
-#endif
#if USE(PTHREADS)
pthread_key_t m_key;
@@ -239,6 +237,6 @@
return *operator T*();
}
-}
+} // namespace WTF
-#endif
+#endif // WTF_ThreadSpecific_h
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes