[#BloombergLP-bdlcc-SingleConsumerQueue-2constructor-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleConsumerQueue.adoc[SingleConsumerQueue]::SingleConsumerQueue :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlcc_singleconsumerqueue.h>` Create a thread‐aware queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/SingleConsumerQueue/2constructor-0d.adoc[SingleConsumerQueue](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/SingleConsumerQueue/2constructor-0d.adoc[_» more..._]# Create a thread‐aware queue with at least the specified `capacity`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdlcc/SingleConsumerQueue/2constructor-02.adoc[SingleConsumerQueue]( std::size_t capacity, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlcc/SingleConsumerQueue/2constructor-02.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator used to supply memory | *capacity* | minimum capacity of the queue |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#