proper shutdown of the ControlSession

This commit is contained in:
Johannes Pohl 2017-03-12 11:22:01 +01:00
parent 9e540c4855
commit df5f9bdeab
4 changed files with 23 additions and 19 deletions

View file

@ -76,8 +76,8 @@ protected:
void writer();
std::atomic<bool> active_;
mutable std::mutex activeMutex_;
mutable std::mutex socketMutex_;
mutable std::recursive_mutex activeMutex_;
mutable std::recursive_mutex socketMutex_;
std::thread* readerThread_;
std::thread* writerThread_;
std::shared_ptr<tcp::socket> socket_;