Constructors

Synopses

Declared in <bdlcc_singleproducerqueueimpl.h>

Create a thread‐aware queue.

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

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

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

Parameters

Name

Description

basicAllocator

memory allocator; null uses the default

capacity

minimum number of elements the queue can hold

Created with MrDocs