adjust comment

This commit is contained in:
mutouyun 2018-11-27 10:49:57 +08:00
parent eefea828f0
commit da25b7fc81

View File

@ -99,7 +99,7 @@ public:
void* acquire(void) { void* acquire(void) {
elem_t* el = elem(wt_.load(std::memory_order_acquire)); elem_t* el = elem(wt_.load(std::memory_order_acquire));
// check read finished by all consumers // check all consumers have finished reading
while(1) { while(1) {
std::size_t expected = 0; std::size_t expected = 0;
if (el->head_.rc_.compare_exchange_weak( if (el->head_.rc_.compare_exchange_weak(