[#BloombergLP-bdlcc-SingleProducerQueue-2constructor-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerQueue.adoc[SingleProducerQueue]::SingleProducerQueue :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bdlcc_singleproducerqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SingleProducerQueue( std::size_t capacity, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#