mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-07 16:20:07 +00:00
82576d0bee
fix a bug in CommonMultiBodyBase: don't use data if it hasn't been allocated
22 lines
416 B
C++
22 lines
416 B
C++
#ifndef POSIX_SHARED_MEMORY_H
|
|
#define POSIX_SHARED_MEMORY_H
|
|
|
|
#include "SharedMemoryInterface.h"
|
|
|
|
|
|
|
|
class PosixSharedMemory : public SharedMemoryInterface
|
|
{
|
|
|
|
struct PosixSharedMemoryInteralData* m_internalData;
|
|
|
|
public:
|
|
PosixSharedMemory();
|
|
virtual ~PosixSharedMemory();
|
|
|
|
virtual void* allocateSharedMemory(int key, int size);
|
|
virtual void releaseSharedMemory(int key, int size);
|
|
};
|
|
|
|
#endif //
|