Реферат: Блокировки в MS SQL Server 2000
#elif defined ORACLE
if (level >= SNAP_SHOT)
#endif
TestExclusive();
}
void RequestShared(int level)
{
#ifdef MSSQL
if (level > READ_UNCOMMITTED)
#elif defined ORACLE
if (level > SNAP_SHOT)
#endif
TestShared(level);
}
void RemoveShared(int level)
{
if (level == READ_COMMITTED){
RemoveSharedLock();
}
}
void RemoveLocks()
{
RemoveAllLocks();
}
private:
CObject()
{
value = 0;
InitializeCriticalSection(&update);