26 if (element ==
nullptr)
29 uint8_t current_tail =
tail_.load(std::memory_order_relaxed);
30 uint8_t next_tail = (current_tail + 1) % SIZE;
32 if (next_tail ==
head_.load(std::memory_order_acquire)) {
38 buffer_[current_tail] = element;
39 tail_.store(next_tail, std::memory_order_release);