Skip to content
Permalink
Browse files
[Soup] Attach the SocketStreamHandleSoup write-ready source to the th…
…read-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.


Canonical link: https://commits.webkit.org/170193@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@193818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
zdobersek committed Dec 9, 2015
1 parent 807b224 commit a1020b143140a8590d5838ae7260a1047f3c1ff1
Showing with 13 additions and 1 deletion.
  1. +12 −0 Source/WebCore/ChangeLog
  2. +1 −1 Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp
@@ -1,3 +1,15 @@
2015-12-09 Zan Dobersek <zdobersek@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 <zdobersek@igalia.com>

[Soup] SocketStreamHandle should call g_source_destroy() on the write-ready source
@@ -245,7 +245,7 @@ void SocketStreamHandle::beginWaitingForSocketWritability()

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()

0 comments on commit a1020b1

Please sign in to comment.