mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 22:20:12 +00:00
efbb1edecc
Make shared memory client/server a bit more robust, in case the server is terminated early.
20 lines
394 B
C++
20 lines
394 B
C++
#ifndef IN_PROCESS_MEMORY_H
|
|
#define IN_PROCESS_MEMORY_H
|
|
|
|
#include "SharedMemoryInterface.h"
|
|
|
|
class InProcessMemory : public SharedMemoryInterface
|
|
{
|
|
struct InProcessMemoryInternalData* m_data;
|
|
|
|
public:
|
|
|
|
InProcessMemory();
|
|
virtual ~InProcessMemory();
|
|
|
|
virtual void* allocateSharedMemory(int key, int size, bool allowCreation);
|
|
virtual void releaseSharedMemory(int key, int size);
|
|
};
|
|
|
|
#endif
|