예제 #1
0
파일: Module.cpp 프로젝트: am11/ffcore
// This isn't 100% safe because another thread could lock this module right after checking _refs
bool ff::Module::IsLocked() const
{
    return InterlockedAccess(_refs) != 0;
}
long ff::ComBase::_GetRefCount() const
{
	return InterlockedAccess(_refs);
}