2015-05-28 23:05:24 +00:00
|
|
|
#ifndef POSIX_SHARED_MEMORY_H
|
|
|
|
#define POSIX_SHARED_MEMORY_H
|
|
|
|
|
|
|
|
#include "SharedMemoryInterface.h"
|
|
|
|
|
|
|
|
class PosixSharedMemory : public SharedMemoryInterface
|
|
|
|
{
|
|
|
|
struct PosixSharedMemoryInteralData* m_internalData;
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2015-05-28 23:05:24 +00:00
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
PosixSharedMemory();
|
|
|
|
virtual ~PosixSharedMemory();
|
2015-05-28 23:05:24 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual void* allocateSharedMemory(int key, int size, bool allowCreation);
|
|
|
|
virtual void releaseSharedMemory(int key, int size);
|
2015-05-28 23:05:24 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //
|