Реферат: Блокировки в MS SQL Server 2000
if (hShared) CloseHandle(hShared);
if (hMutex) CloseHandle(hMutex);
}
protected:
CProxy& BeginTran(int level)
{
return *(new CProxy(this,level));
}
void RequestExclusive(int level)
{
if (level >= READ_UNCOMMITTED)
TestExclusive();
}
void RequestShared(int level)
{
if (level > READ_UNCOMMITTED)
TestShared(level);
}
void RemoveShared(int level)
{
if (level == READ_COMMITTED){
RemoveSharedLock();
}
}
void RemoveLocks()
{
RemoveAllLocks();
}
private: