shm: Make sure no event notifications are missed

This commit is contained in:
Alexey Rybalchenko
2021-02-26 11:40:33 +01:00
parent 9b48b31a75
commit 0fd2fcadc2
2 changed files with 30 additions and 1 deletions

View File

@@ -103,6 +103,15 @@ struct DeviceCounter
std::atomic<unsigned int> fCount;
};
struct EventCounter
{
EventCounter(uint64_t c)
: fCount(c)
{}
std::atomic<uint64_t> fCount;
};
struct RegionCounter
{
RegionCounter(uint16_t c)