more work on scripting synchronization and state saving

This commit is contained in:
Joakim Kilby
2015-07-05 17:21:23 +02:00
parent 72dbf1ecc9
commit d76e18d9ee
2 changed files with 58 additions and 0 deletions
@@ -40,6 +40,7 @@
#include <thread>
#include <sstream>
#include <mutex>
#include <map>
#ifdef __WIN32__
#ifndef WIN32_LEAN_AND_MEAN
@@ -90,6 +91,8 @@ namespace openspace{
void preSynchronization();
void scriptMessage(const std::string propIdentifier, const std::string propValue);
enum MessageTypes{
Authentication=0,
Initialization,
@@ -171,6 +174,8 @@ namespace openspace{
void threadManagement();
std::string scriptFromPropertyAndValue(const std::string property, const std::string value);
uint32_t _passCode;
std::string _port;
std::string _address;
@@ -192,6 +197,7 @@ namespace openspace{
network::datamessagestructures::TimeKeyframe _latestTimeKeyframe;
std::mutex _timeKeyframeMutex;
std::atomic<bool> _latestTimeKeyframeValid;
std::map<std::string, std::string> _currentState;
};
} // namespace network