- 1
- 2
- 3
- 4
- 5
- 6
- 7
union AtomicIndx
{
struct { std::atomic<uint16> ReadCur, ReadMax, WriteCur, WriteMax; };
struct { struct Idx { uint16 Cur, Max; }; std::atomic<Idx> Read, Write; };
struct { struct Idx { uint16 ReadCur, ReadMax, WriteCur, WriteMax; }; std::atomic<Idx> All; };
};
static_assert(sizeof(AtomicIndx) == sizeof(uint64), "sizeof(AtomicIndx) != sizeof(uint64)");
Dummy00001 08.08.2013 23:52 # 0
LispGovno 09.08.2013 00:09 # 0
Dummy00001 09.08.2013 00:16 # +4