OpenDaVINCI  4.15.3
odcore::wrapper::SharedMemoryFactory Struct Reference

#include <SharedMemoryFactory.h>

Static Public Member Functions

static std::shared_ptr
< SharedMemory
createSharedMemory (const string &name, const uint32_t &size)
 
static std::shared_ptr
< SharedMemory
attachToSharedMemory (const string &name)
 

Detailed Description

Abstract factory for creating shared memory between independent processes using different implementations (i.e. WIN32 or POSIX).

Member Function Documentation

std::shared_ptr< SharedMemory > odcore::wrapper::SharedMemoryFactory::attachToSharedMemory ( const string &  name)
static

This method returns the shared memory.

Parameters
nameName of the shared memory to attach.
Returns
Shared memory based on the type of instance this factory is.

References odcore::wrapper::SharedMemoryFactoryWorker< product >::attachToSharedMemory().

Referenced by odtools::recorder::SharedDataListener::add().

std::shared_ptr< SharedMemory > odcore::wrapper::SharedMemoryFactory::createSharedMemory ( const string &  name,
const uint32_t &  size 
)
static

This method returns the shared memory.

Parameters
nameName of the shared memory to create.
sizeRequired size for the new shared memory.
Returns
Shared memory based on the type of instance this factory is.

References odcore::wrapper::SharedMemoryFactoryWorker< product >::createSharedMemory().

Referenced by odtools::player::RecMemIndex::makeNextRawMemoryEntryAvailable().