mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-14 17:16:47 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e642262468 |
|
@ -227,7 +227,7 @@ auto Control::WaitForNextState() -> DeviceState
|
||||||
unique_lock<mutex> lock{fEventsMutex};
|
unique_lock<mutex> lock{fEventsMutex};
|
||||||
while (fEvents.empty())
|
while (fEvents.empty())
|
||||||
{
|
{
|
||||||
fNewEvent.wait(lock);
|
fNewEvent.wait_for(lock, chrono::milliseconds(50));
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = fEvents.front();
|
auto result = fEvents.front();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user