DEVEL15-windows-scache-refcount-race-20080207

LICENSE MIT

if we are going to call a NoLock function better be holding the lock


(cherry picked from commit bb2dc54732c865f37b0e9c5b928c850daa795b4d)
This commit is contained in:
Jeffrey Altman 2008-02-07 21:21:20 +00:00
parent f04e5a509b
commit 4d8ed8defe

View File

@ -1932,8 +1932,8 @@ void cm_CheckCBExpiration(void)
lock_ReleaseMutex(&scp->mx);
cm_CallbackNotifyChange(scp);
cm_ReleaseSCacheNoLock(scp);
lock_ObtainWrite(&cm_scacheLock);
cm_ReleaseSCacheNoLock(scp);
}
}
}