add Windows version of shared memory, very basic implementation (only allows one single allocation)

This commit is contained in:
erwin coumans
2015-06-04 15:37:18 -07:00
parent f74e3782aa
commit a94ac6300a
6 changed files with 165 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
#include "PhysicsServer.h"
#include "PosixSharedMemory.h"
#include "Win32SharedMemory.h"
#include "../Importers/ImportURDFDemo/MyURDFImporter.h"
#include "../Importers/ImportURDFDemo/MyMultiBodyCreator.h"
#include "../Importers/ImportURDFDemo/URDF2Bullet.h"
@@ -48,7 +50,12 @@ m_testBlock1(0),
m_wantsShutdown(false)
{
b3Printf("Started PhysicsServer\n");
bool useServer = true;
#ifdef _WIN32
m_sharedMemory = new Win32SharedMemoryServer();
#else
m_sharedMemory = new PosixSharedMemory();
#endif
}
void PhysicsServer::releaseSharedMemory()