// 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); }