add racy RPC resolution. also add better debugging info and fix two shared-memory-race bugs.
This commit is contained in:
@@ -62,12 +62,12 @@ SyncChannel::Send(Message* msg, Message* reply)
|
||||
"violation of sync handler invariant");
|
||||
NS_ABORT_IF_FALSE(msg->is_sync(), "can only Send() sync messages here");
|
||||
|
||||
MutexAutoLock lock(mMutex);
|
||||
|
||||
if (!Connected())
|
||||
// trying to Send() to a closed or error'd channel
|
||||
return false;
|
||||
|
||||
MutexAutoLock lock(mMutex);
|
||||
|
||||
mPendingReply = msg->type() + 1;
|
||||
if (!AsyncChannel::Send(msg))
|
||||
// FIXME more sophisticated error handling
|
||||
|
||||
Reference in New Issue
Block a user