Title: [193818] trunk/Source/WebCore
- Revision
- 193818
- Author
- zandober...@gmail.com
- Date
- 2015-12-09 03:22:00 -0800 (Wed, 09 Dec 2015)
Log Message
[Soup] Attach the SocketStreamHandleSoup write-ready source to the thread-default context
https://bugs.webkit.org/show_bug.cgi?id=152041
Reviewed by Carlos Garcia Campos.
* platform/network/soup/SocketStreamHandleSoup.cpp:
(WebCore::SocketStreamHandle::beginWaitingForSocketWritability): Attach the
write-ready source to the thread-default context, instead of implicitly
relying on the default context for dispatching.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (193817 => 193818)
--- trunk/Source/WebCore/ChangeLog 2015-12-09 11:20:33 UTC (rev 193817)
+++ trunk/Source/WebCore/ChangeLog 2015-12-09 11:22:00 UTC (rev 193818)
@@ -1,5 +1,17 @@
2015-12-09 Zan Dobersek <zdober...@igalia.com>
+ [Soup] Attach the SocketStreamHandleSoup write-ready source to the thread-default context
+ https://bugs.webkit.org/show_bug.cgi?id=152041
+
+ Reviewed by Carlos Garcia Campos.
+
+ * platform/network/soup/SocketStreamHandleSoup.cpp:
+ (WebCore::SocketStreamHandle::beginWaitingForSocketWritability): Attach the
+ write-ready source to the thread-default context, instead of implicitly
+ relying on the default context for dispatching.
+
+2015-12-09 Zan Dobersek <zdober...@igalia.com>
+
[Soup] SocketStreamHandle should call g_source_destroy() on the write-ready source
https://bugs.webkit.org/show_bug.cgi?id=152040
Modified: trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp (193817 => 193818)
--- trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp 2015-12-09 11:20:33 UTC (rev 193817)
+++ trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp 2015-12-09 11:22:00 UTC (rev 193818)
@@ -245,7 +245,7 @@
m_writeReadySource = adoptGRef(g_pollable_output_stream_create_source(m_outputStream.get(), 0));
g_source_set_callback(m_writeReadySource.get(), reinterpret_cast<GSourceFunc>(writeReadyCallback), m_id, 0);
- g_source_attach(m_writeReadySource.get(), 0);
+ g_source_attach(m_writeReadySource.get(), g_main_context_get_thread_default());
}
void SocketStreamHandle::stopWaitingForSocketWritability()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes