added a receive thread. fixed a bug where threads tried to join/delete themselves

This commit is contained in:
Joakim Kilby
2015-07-01 12:17:20 +02:00
parent 6697eeb7b7
commit aea4a1ac0c
2 changed files with 98 additions and 92 deletions

View File

@@ -211,6 +211,7 @@ namespace openspace{
std::thread *_connectionThread;
std::thread *_broadcastThread;
std::thread *_sendThread;
std::thread *_receiveThread;
std::atomic<bool> _isHost;
std::atomic<bool> _isConnected;
std::atomic<bool> _isListening;