Пример #1
0
inline
CPrefetchTokenOld::CPrefetchTokenOld(CScope& scope,
                               const TIds& ids,
                               unsigned int depth)
    : m_Impl(new CPrefetchTokenOld_Impl(ids, depth))
{
    m_Impl->AddTokenReference();
    m_Impl->x_InitPrefetch(scope);
    return;
}
Пример #2
0
inline
CPrefetchTokenOld::CPrefetchTokenOld(CScope& scope,
                               const TIds& ids,
                               ENon_locking_prefetch)
    : m_Impl(new CPrefetchTokenOld_Impl(ids, 2))
{
    m_Impl->AddTokenReference();
    m_Impl->x_SetNon_locking();
    m_Impl->x_InitPrefetch(scope);
    return;
}
Пример #3
0
inline
CPrefetchTokenOld& CPrefetchTokenOld::operator =(const CPrefetchTokenOld& token)
{
    if (this != &token) {
        if (m_Impl) {
            m_Impl->RemoveTokenReference();
        }
        m_Impl = token.m_Impl;
        if (m_Impl) {
            m_Impl->AddTokenReference();
        }
    }
    return *this;
}