rigtorp / MPMCQueue

A bounded multi-producer multi-consumer concurrent queue written in C++11
MIT License
1.15k stars 159 forks source link

Add size() and empty() methods #33

Closed rigtorp closed 2 years ago

rigtorp commented 2 years ago

Since read and write sequence can wraparound on 32bit, the size can be incorrect there. Not sure how to deal with that yet.

Closes #29