Constructors
Synopses
Declared in <bdlcc_singleproducerqueue.h>
Create a thread‐aware queue.
explicit
SingleProducerQueue(bslma::Allocator* basicAllocator = 0);
Create a thread‐aware queue with at least the specified capacity.
SingleProducerQueue(
std::size_t capacity,
bslma::Allocator* basicAllocator = 0);
Parameters
Name |
Description |
basicAllocator |
allocator used to supply memory |
capacity |
minimum capacity of the queue |
Created with MrDocs