Don't wait forever to acquire the send lock

This commit is contained in:
Eelco Dolstra
2017-09-01 15:29:06 +02:00
parent b405837d4d
commit 50ab80caf2
2 changed files with 3 additions and 2 deletions

View File

@ -231,7 +231,7 @@ struct Machine
/* Mutex to prevent multiple threads from sending data to the
same machine (which would be inefficient). */
std::mutex sendLock;
std::timed_mutex sendLock;
};
State::ptr state;