Commit Graph

1 Commits (72ef3f39643b1cca738f0ef166a07b88815cd7b8)

Author SHA1 Message Date
Ershaad Basheer 72ef3f3964 maps/ring_buf: fix producer position initialization
The RingBuf caches the last value it read of the producer so it doesn't
need to constantly contend on the actual producer cache line if lots of
messages have yet to be consumed. It was bogus to initialize this cache
at 0. This patch initializes it properly and adds testing.

Fixes: #1309
2 months ago