code cleanup and optimisation in the way threads are handled

This commit is contained in:
Joakim Kilby
2015-07-07 12:49:48 +02:00
parent 9100be55eb
commit 9cdc9c30d2
2 changed files with 56 additions and 185 deletions
@@ -41,6 +41,7 @@
#include <sstream>
#include <mutex>
#include <map>
#include <condition_variable>
#ifdef __WIN32__
#ifndef WIN32_LEAN_AND_MEAN
@@ -186,9 +187,13 @@ namespace openspace{
std::atomic<bool> _isRunning;
std::atomic<bool> _tryConnect;
std::atomic<bool> _initializationTimejumpRequired;
std::condition_variable _disconnectCondition;
std::mutex _disconnectMutex;
std::vector<std::vector<char>> _sendBuffer;
std::mutex _sendBufferMutex;
std::condition_variable _sendCondition;
network::datamessagestructures::TimeKeyframe _latestTimeKeyframe;
std::mutex _timeKeyframeMutex;