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

void LVCMem_Wrapper::MonitorAlloc ( void *  pContext,
SAPDB_ULong  chunkSize,
bool  isUsrRequest 
) [inline, static]

---------------------------------------------------------------------- function: MonitorAlloc description: monitors an allocate request in the current context arguments: pContext[in] pointer to the context of the caller, must have been determined by a call of GetContext. chunkSize[in] the size of the allocted chunk. isUsrRequest[in] if true, the chunk is monitored in the user area; otherwise in the system area. return value: none -----------------------------------------------------------------------

Definition at line 242 of file LVCMem_Wrapper.hpp.

Referenced by LVCMem_Allocator::AllocateImplementation(), and LVCMem_Allocator::OmsAllocate().

{
  if (0 != pContext)
  {
    tak_all_command_glob* pAcv = REINTERPRET_CAST(tak_all_command_glob*, pContext);
    if (isUsrRequest)
    {
      LVCMem_Wrapper::MonitorNewChunk(pAcv->a_allocatorInfo.ai_alloc_usr, chunkSize);
    }
    else
    {
      LVCMem_Wrapper::MonitorNewChunk(pAcv->a_allocatorInfo.ai_alloc_sys, chunkSize);
    }
  }
}


Generated by  Doxygen 1.6.0   Back to index