BloombergLP::bdlcc::SingleProducerQueueImpl::SingleProducerQueueImpl

Constructors

Synopses

Declared in <bdlcc_singleproducerqueueimpl.h>

Create a thread-aware queue.

explicit
SingleProducerQueueImpl(bslma::Allocator* basicAllocator = 0);
» more...

Create a thread-aware queue with, at least, the specified capacity.

SingleProducerQueueImpl(
    std::size_t capacity,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
capacityminimum number of elements the queue can hold