From 4f17362aeb80e5339c58a5d3b0fbaeb88d9e701c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 13 Feb 2012 21:47:03 +0000 Subject: Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSimulatorManager.h | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'source/cSimulatorManager.h') diff --git a/source/cSimulatorManager.h b/source/cSimulatorManager.h index de59b8536..1168e5af8 100644 --- a/source/cSimulatorManager.h +++ b/source/cSimulatorManager.h @@ -1,6 +1,18 @@ + +// cSimulatorManager.h + + + + #pragma once + + + + #include "cSimulator.h" -#include + + + class cSimulatorManager @@ -12,9 +24,16 @@ public: void Simulate( float a_Dt ); void WakeUp(int a_X, int a_Y, int a_Z); - void RegisterSimulator(cSimulator *a_Simulator, short a_Rate); + void RegisterSimulator(cSimulator * a_Simulator, short a_Rate); // Takes ownership of the simulator object! protected: - std::vector *> m_Simulators; - long long m_Ticks; -}; \ No newline at end of file + + typedef std::vector *> cSimulators; + + cSimulators m_Simulators; + long long m_Ticks; +}; + + + + -- cgit v1.2.3