fix(shm): race/deadlock in region locks

This commit is contained in:
Alexey Rybalchenko
2022-08-18 21:40:56 +02:00
committed by Dennis Klein
parent 226733c653
commit da5cb34416
3 changed files with 77 additions and 49 deletions

View File

@@ -76,6 +76,8 @@ struct Sampler : fair::mq::Device
void ResetTask() override
{
// give some time for acks to be received
std::this_thread::sleep_for(std::chrono::milliseconds(250));
fRegion.reset();
{
std::lock_guard<std::mutex> lock(fMtx);