Dataflow Runtime API  3.1.1.0
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
imt::base::dff::runtime::RuntimeEventPools Class Reference

Holds the internal global data pools for the runtime. More...

#include <Imt.Base.Dff.Runtime/RuntimeEventPools.h>

Public Types

typedef core::util::ObjectPoolAllocator< EventDataNormalEventDataNormalPool
 Pool for normal events (Object types) More...
 
typedef core::util::ListNode< EventData * > EventDataPointerNode
 DataPointer node definition. More...
 
typedef core::util::TrivialPoolAllocator< EventDataPointerNodeEventDataPointerPool
 Pool for normal events (Trivial types) More...
 

Static Public Member Functions

static EventDataallocate (const size_t eventSizeBytes)
 Instantiates an object out of the memory pool. More...
 
static void deallocate (EventData *data)
 Deallocates the pool memory pointed by data. More...
 

Static Public Attributes

static EventDataNormalPool s_eventAllocator
 
static EventDataPointerPool s_activeEventAlloc
 

Detailed Description

Holds the internal global data pools for the runtime.

Member Typedef Documentation

◆ EventDataNormalPool

Pool for normal events (Object types)

◆ EventDataPointerNode

DataPointer node definition.

◆ EventDataPointerPool

Pool for normal events (Trivial types)

Member Function Documentation

◆ allocate()

static EventData* imt::base::dff::runtime::RuntimeEventPools::allocate ( const size_t  eventSizeBytes)
inlinestatic

Instantiates an object out of the memory pool.

Allocates the a number of bytes, calls the constructor of the object (new) and returns a pointer to it. The number of bytes must be <= elemSize.

Parameters
eventSizeBytesthe size of predicted event. Used for correct memory allocation
Returns
Pointer to the object. This function returns 0 in case of out of memory.

◆ deallocate()

static void imt::base::dff::runtime::RuntimeEventPools::deallocate ( EventData data)
inlinestatic

Deallocates the pool memory pointed by data.

Parameters
dataReference to the object, which points to the memory to deallocate.

Member Data Documentation

◆ s_activeEventAlloc

EventDataPointerPool imt::base::dff::runtime::RuntimeEventPools::s_activeEventAlloc
static

◆ s_eventAllocator

EventDataNormalPool imt::base::dff::runtime::RuntimeEventPools::s_eventAllocator
static

The documentation for this class was generated from the following file: