mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
Fix race condition in the control plugin
This commit is contained in:
parent
9bab3f9f4c
commit
e642262468
|
@ -227,7 +227,7 @@ auto Control::WaitForNextState() -> DeviceState
|
|||
unique_lock<mutex> lock{fEventsMutex};
|
||||
while (fEvents.empty())
|
||||
{
|
||||
fNewEvent.wait(lock);
|
||||
fNewEvent.wait_for(lock, chrono::milliseconds(50));
|
||||
}
|
||||
|
||||
auto result = fEvents.front();
|
||||
|
|
Loading…
Reference in New Issue
Block a user