further fixes to thread stability

This commit is contained in:
Joakim Kilby
2015-07-01 14:16:18 +02:00
parent 762e70f14b
commit 7159dd8246
3 changed files with 22 additions and 15 deletions

View File

@@ -131,6 +131,8 @@ namespace openspace{
void queMessage(std::vector<char> message);
void update(double dt);
enum MessageTypes{
Authentication=0,
Initialization,
@@ -215,6 +217,7 @@ namespace openspace{
std::atomic<bool> _isHost;
std::atomic<bool> _isConnected;
std::atomic<bool> _isListening;
std::atomic<bool> _performDisconnect;
std::vector<std::vector<char>> _sendBuffer;
std::mutex _sendBufferMutex;
};