Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void LVCMem_BlockAllocator::SetLimit ( SAPDB_ULong  limit  ) 

defines the maximal amount of memory provided by this allocator.

value none

Definition at line 233 of file LVCMem_BlockAllocator.cpp.

References CalcBlockCount(), m_allocated, m_limit, m_spinlock, and ReleaseFreeList().

Referenced by LVCMem_Allocator::Create().

      if (limit > 0)
            RTESync_LockedScope lockedScope(m_spinlock);
            m_limit = this->CalcBlockCount(limit);
            if (m_allocated > m_limit)

Generated by  Doxygen 1.6.0   Back to index