1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Resolves a potential deadlock on multi machine handover.

This commit is contained in:
Thomas Harte
2019-02-27 22:39:33 -05:00
parent b81e59fd8f
commit b0503efa3d
4 changed files with 7 additions and 7 deletions
@@ -73,7 +73,7 @@ bool MultiMachine::would_collapse(const std::vector<std::unique_ptr<DynamicMachi
}
void MultiMachine::multi_crt_did_run_machines() {
std::lock_guard<std::mutex> machines_lock(machines_mutex_);
std::lock_guard<decltype(machines_mutex_)> machines_lock(machines_mutex_);
#ifdef DEBUG
for(const auto &machine: machines_) {
CRTMachine::Machine *crt = machine->crt_machine();