Skip to main content

struct double_buffered_queue::write_end

Declaration

struct double_buffered_queue::write_end { /* full declaration omitted */ };

Description

Aligned group 1: The write-queue and its associated synchronization primitives will move between threads on push, pop, and wait.

Member Variables

std::mutex mutex
std::condition_variable resume
std::vector<T> queue
std::atomic<bool> queue_nonempty = {false}