Title: [153336] trunk/Source/WTF
- Revision
- 153336
- Author
- [email protected]
- Date
- 2013-07-25 11:11:13 -0700 (Thu, 25 Jul 2013)
Log Message
Fix Windows build after r153134.
https://bugs.webkit.org/show_bug.cgi?id=119090
Reviewed by Oliver Hunt.
Add USE(PTHREADS) guards around pthread specific code
for now. This will cause isCompilationThread to always
return false on non pthread platforms such as Windows.
We might be able to use the Windows one-time initialization
for this, but this is only available from Windows Vista on.
* wtf/CompilationThread.cpp:
(WTF::initializeCompilationThreads):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (153335 => 153336)
--- trunk/Source/WTF/ChangeLog 2013-07-25 17:55:49 UTC (rev 153335)
+++ trunk/Source/WTF/ChangeLog 2013-07-25 18:11:13 UTC (rev 153336)
@@ -1,3 +1,20 @@
+2013-07-25 Michael BrĂ¼ning <[email protected]>
+
+ Fix Windows build after r153134.
+ https://bugs.webkit.org/show_bug.cgi?id=119090
+
+ Reviewed by Oliver Hunt.
+
+ Add USE(PTHREADS) guards around pthread specific code
+ for now. This will cause isCompilationThread to always
+ return false on non pthread platforms such as Windows.
+
+ We might be able to use the Windows one-time initialization
+ for this, but this is only available from Windows Vista on.
+
+ * wtf/CompilationThread.cpp:
+ (WTF::initializeCompilationThreads):
+
2013-07-25 Allan Sandfeld Jensen <[email protected]>
Fix windows build after FTL upstream
Modified: trunk/Source/WTF/wtf/CompilationThread.cpp (153335 => 153336)
--- trunk/Source/WTF/wtf/CompilationThread.cpp 2013-07-25 17:55:49 UTC (rev 153335)
+++ trunk/Source/WTF/wtf/CompilationThread.cpp 2013-07-25 18:11:13 UTC (rev 153336)
@@ -33,7 +33,9 @@
namespace WTF {
static ThreadSpecific<bool>* s_isCompilationThread;
+#if USE(PTHREADS)
static pthread_once_t initializeCompilationThreadsKeyOnce = PTHREAD_ONCE_INIT;
+#endif
static void initializeCompilationThreadsOnce()
{
@@ -42,7 +44,9 @@
static void initializeCompilationThreads()
{
+#if USE(PTHREADS)
pthread_once(&initializeCompilationThreadsKeyOnce, initializeCompilationThreadsOnce);
+#endif
}
bool isCompilationThread()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes