mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Quick shutdown of ConsoleHandler thread
This commit is contained in:
@@ -94,6 +94,8 @@ private:
|
||||
//function to be called when message is received - string: message, bool: whether call was made from in-game console
|
||||
std::function<void(const std::string &, bool)> cb;
|
||||
|
||||
std::condition_variable shutdownVariable;
|
||||
std::mutex shutdownMutex;
|
||||
std::atomic<bool> shutdownPending = false;
|
||||
|
||||
std::mutex smx;
|
||||
|
||||
Reference in New Issue
Block a user