Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
2011-02-11 Anders Carlsson <andersca@apple.com>
Reviewed by Adam Roben. Add a SyncMessageState class to CoreIPC::Connection https://bugs.webkit.org/show_bug.cgi?id=54309 SyncMessageState objects are shared between all connections scheduled on a given run loop. It will be used to keep track of state when waiting for replies for a synchronous message. * Platform/CoreIPC/Connection.cpp: (CoreIPC::Connection::SyncMessageState::syncMessageStateMap): (CoreIPC::Connection::SyncMessageState::syncMessageStateMapMutex): Add a global RunLoop -> SyncMessageState map and a mutex for locking. (CoreIPC::Connection::SyncMessageState::getOrCreate): Look in the map for an existing SyncMessageState object and create a new one if none is found. (CoreIPC::Connection::SyncMessageState::SyncMessageState): Initialize m_runLoop. (CoreIPC::Connection::SyncMessageState::~SyncMessageState): Remove the object from the map. Canonical link: https://commits.webkit.org/68376@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@78368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Anders Carlsson
committed
Feb 11, 2011
1 parent
6438a52
commit a1c6b11
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters