DEVEL15-windows-server-lock-error-20071224

LICENSE MIT

The cm_serverLock must be write locked to modify the refCount


(cherry picked from commit 1b90fc5329dc7dd2055ab9150e3709b2b2cfac06)
This commit is contained in:
Jeffrey Altman 2007-12-24 05:15:42 +00:00
parent a1076e12af
commit f3d00f8f23

View File

@ -35,13 +35,13 @@ cm_ForceNewConnectionsAllServers(void)
{
cm_server_t *tsp;
lock_ObtainRead(&cm_serverLock);
lock_ObtainWrite(&cm_serverLock);
for (tsp = cm_allServersp; tsp; tsp = tsp->allNextp) {
cm_GetServerNoLock(tsp);
cm_ForceNewConnections(tsp);
cm_PutServerNoLock(tsp);
}
lock_ReleaseRead(&cm_serverLock);
lock_ReleaseWrite(&cm_serverLock);
}
void