Changeset 193818 in webkit


Ignore:
Timestamp:
Dec 9, 2015 3:22:00 AM (8 years ago)
Author:
zandobersek@gmail.com
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r193817 r193818  
     12015-12-09  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [Soup] Attach the SocketStreamHandleSoup write-ready source to the thread-default context
     4        https://bugs.webkit.org/show_bug.cgi?id=152041
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/network/soup/SocketStreamHandleSoup.cpp:
     9        (WebCore::SocketStreamHandle::beginWaitingForSocketWritability): Attach the
     10        write-ready source to the thread-default context, instead of implicitly
     11        relying on the default context for dispatching.
     12
    1132015-12-09  Zan Dobersek  <zdobersek@igalia.com>
    214
  • trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp

    r193817 r193818  
    246246    m_writeReadySource = adoptGRef(g_pollable_output_stream_create_source(m_outputStream.get(), 0));
    247247    g_source_set_callback(m_writeReadySource.get(), reinterpret_cast<GSourceFunc>(writeReadyCallback), m_id, 0);
    248     g_source_attach(m_writeReadySource.get(), 0);
     248    g_source_attach(m_writeReadySource.get(), g_main_context_get_thread_default());
    249249}
    250250
Note: See TracChangeset for help on using the changeset viewer.