OpenDaVINCI  4.15.3
odcore::wrapper::POSIX::POSIXSharedMemory Class Reference

#include <POSIXSharedMemory.h>

Inheritance diagram for odcore::wrapper::POSIX::POSIXSharedMemory:
Inheritance graph

Public Member Functions

virtual ~POSIXSharedMemory ()
 
virtual bool isValid () const
 
virtual const string getName () const
 
virtual void lock ()
 
virtual void unlock ()
 
virtual void * getSharedMemory () const
 
virtual uint32_t getSize () const
 

Friends

class SharedMemoryFactoryWorker< SystemLibraryPosix >
 

Detailed Description

This class implements a shared memory using POSIX.

SharedMemory.

Constructor & Destructor Documentation

odcore::wrapper::POSIX::POSIXSharedMemory::~POSIXSharedMemory ( )
virtual

Member Function Documentation

const string odcore::wrapper::POSIX::POSIXSharedMemory::getName ( ) const
virtual

This method returns the name for the shared memory.

Returns
name for the shared memory.

Implements odcore::wrapper::SharedMemory.

void * odcore::wrapper::POSIX::POSIXSharedMemory::getSharedMemory ( ) const
virtual

This method returns a pointer to the beginning of the shared memory.

Returns
Pointer to the beginning of the shared memory.

Implements odcore::wrapper::SharedMemory.

uint32_t odcore::wrapper::POSIX::POSIXSharedMemory::getSize ( ) const
virtual

This method returns the size of the shared memory.

Returns
Size of the shared memory.

Implements odcore::wrapper::SharedMemory.

bool odcore::wrapper::POSIX::POSIXSharedMemory::isValid ( ) const
virtual

This method returns true if the shared memory is valid.

Returns
true if the shared memory is valid.

Implements odcore::wrapper::SharedMemory.

void odcore::wrapper::POSIX::POSIXSharedMemory::lock ( )
virtual

This method tries to lock the shared memory.

Implements odcore::wrapper::SharedMemory.

void odcore::wrapper::POSIX::POSIXSharedMemory::unlock ( )
virtual

This method unlocks the shared memory.

Implements odcore::wrapper::SharedMemory.

Friends And Related Function Documentation