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

void LVCMem_Wrapper::MonitorDealloc ( SAPDB_ULong  chunkSize,
bool  isUsrRequest 
) [inline, static]

---------------------------------------------------------------------- function: MonitorDealloc description: monitors an deallocate request in the current context arguments: chunkSize[in] the size of the deallocted chunk. isUsrRequest[in] if true, the chunk is monitored in the user area; otherwise in the system area. return value: none -----------------------------------------------------------------------

Definition at line 271 of file LVCMem_Wrapper.hpp.

References GetContext().

Referenced by LVCMem_Allocator::DeallocateImplementation(), and LVCMem_Allocator::OmsDeallocate().

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


Generated by  Doxygen 1.6.0   Back to index