Title: [188596] trunk/Tools
- Revision
- 188596
- Author
- fpi...@apple.com
- Date
- 2015-08-18 14:28:31 -0700 (Tue, 18 Aug 2015)
Log Message
Unreviewed, fix GTK build.
* TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp:
(TestWebKitAPI::TEST):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (188595 => 188596)
--- trunk/Tools/ChangeLog 2015-08-18 19:52:53 UTC (rev 188595)
+++ trunk/Tools/ChangeLog 2015-08-18 21:28:31 UTC (rev 188596)
@@ -1,3 +1,10 @@
+2015-08-18 Filip Pizlo <fpi...@apple.com>
+
+ Unreviewed, fix GTK build.
+
+ * TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp:
+ (TestWebKitAPI::TEST):
+
2015-08-17 Filip Pizlo <fpi...@apple.com>
Replace all remaining uses of WTF::Mutex with WTF::Lock
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp (188595 => 188596)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp 2015-08-18 19:52:53 UTC (rev 188595)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp 2015-08-18 21:28:31 UTC (rev 188596)
@@ -28,6 +28,8 @@
#include "Test.h"
#include <gio/gio.h>
#include <thread>
+#include <wtf/Condition.h>
+#include <wtf/Lock.h>
#include <wtf/WorkQueue.h>
#include <wtf/glib/GRefPtr.h>
#include <wtf/glib/GUniquePtr.h>
@@ -38,7 +40,7 @@
{
struct TestingContext {
Lock m_lock;
- ThreadCondition m_testCompleted;
+ Condition m_testCompleted;
GMainContext* m_mainContext;
} context;
@@ -59,7 +61,7 @@
TestingContext* context = static_cast<TestingContext*>(userData);
LockHolder locker(context->m_lock);
EXPECT_EQ(g_main_context_get_thread_default(), context->m_mainContext);
- context->m_testCompleted.signal();
+ context->m_testCompleted.notifyOne();
}, &context);
});
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes