Beispiel #1
0
void CScopeInfo_Base::x_SetLock(const CTSE_ScopeUserLock& tse,
                                const CTSE_Info_Object& info)
{
    _ASSERT(x_Check(fAllowZero|fAllowInfo));
    _ASSERT(!IsDetached());
    _ASSERT(tse);
    _ASSERT(&*tse == m_TSE_ScopeInfo);
    _ASSERT(!m_TSE_Handle || &m_TSE_Handle.x_GetScopeInfo() == &*tse);
    _ASSERT(!m_ObjectInfo || &GetObjectInfo_Base() == &info);
    m_TSE_Handle = tse;
    m_ObjectInfo = &reinterpret_cast<const CObject&>(info);
    _ASSERT(x_Check(fAllowZero|fForceInfo));
}
Beispiel #2
0
 const TObjectInfo& GetObjectInfo(void) const
     {
         return reinterpret_cast<const TObjectInfo&>(GetObjectInfo_Base());
     }