fixed deadlock

This commit is contained in:
badaix 2016-11-09 19:28:11 +01:00
parent d0c88e2ce0
commit 280cd10231
2 changed files with 18 additions and 11 deletions

View file

@ -89,7 +89,7 @@ protected:
void reader();
void writer();
mutable std::recursive_mutex mutex_;
mutable std::mutex mutex_;
std::atomic<bool> active_;
std::unique_ptr<std::thread> readerThread_;