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

Synopsis

Declared in <bdlcc_singleproducerqueue.h>

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

Description

Create a thread‐aware queue with, at least, the specified capacity. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

capacity

minimum capacity of the queue

basicAllocator

allocator used to supply memory

Created with MrDocs