Connection::sendSyncMessage needs to dispatch incoming sync messages
https://bugs.webkit.org/show_bug.cgi?id=48606
Reviewed by Adam Roben.
* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::sendSyncMessage):
Protect the connection when waiting for a reply. Schedule for any remaining incoming sync messages
to be sent once the bottom-most waitForSyncReply calls returns.
(CoreIPC::Connection::waitForSyncReply):
Make sure to dispatch any incoming sync messages.
(CoreIPC::Connection::processIncomingMessage):
If the incoming message is a sync message and we're waiting for a sync reply, add the message to the
queue of "sync messages received while waiting for sync reply" and wake up the client thread.
* Platform/CoreIPC/Connection.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3 files changed