Minor locking fix and typo in comment corrected.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16604 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-05-02 11:54:54 +00:00
parent 0c419b3b73
commit 34551f89d8

View file

@ -2175,7 +2175,7 @@ static void retEncoder (DOContext *ctxt)
{
conn->_requestDepth++;
M_UNLOCK(conn->_queueGate);
[conn _service_forwardForProxy: rmc];
[conn _service_forwardForProxy: rmc]; // Catches exceptions
M_LOCK(conn->_queueGate);
conn->_requestDepth--;
}
@ -2192,7 +2192,7 @@ static void retEncoder (DOContext *ctxt)
rmc = [conn->_requestQueue objectAtIndex: 0];
[conn->_requestQueue removeObjectAtIndex: 0];
M_UNLOCK(conn->_queueGate);
[conn _service_forwardForProxy: rmc];
[conn _service_forwardForProxy: rmc]; // Catches exceptions
M_LOCK(conn->_queueGate);
}
M_UNLOCK(conn->_queueGate);
@ -2696,7 +2696,7 @@ static void callEncoder (DOContext *ctxt)
else
{
/*
* Normal operation - wait for data to be recieved or for a timeout.
* Normal operation - wait for data to be received or for a timeout.
*/
if ([runLoop runMode: NSConnectionReplyMode
beforeDate: timeout_date] == NO)
@ -3093,8 +3093,8 @@ static void callEncoder (DOContext *ctxt)
node = GSIMapNodeForKey(_localObjects, (GSIMapKey)anObj);
if (node == 0)
{
M_LOCK(global_proxies_gate);
M_LOCK(_proxiesGate);
M_UNLOCK(_proxiesGate);
M_UNLOCK(global_proxies_gate);
[NSException raise: NSInternalInconsistencyException
format: @"Attempt to remove non-existent local %@", anObj];
}