windows-scache-refcount-race-20080207

LICENSE MIT

if we are going to call a NoLock function better be holding the lock
This commit is contained in:
Jeffrey Altman 2008-02-07 21:20:02 +00:00
parent f2be22f710
commit bb2dc54732

View File

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