Constructors
Declared in <bdlcc_singleproducerqueueimpl.h>
Create a thread-aware queue.
explicit
SingleProducerQueueImpl(bslma::Allocator* basicAllocator = 0);
» more...
Create a thread-aware queue with, at least, the specified capacity.
SingleProducerQueueImpl(
std::size_t capacity,
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| basicAllocator | memory allocator; null uses the default |
| capacity | minimum number of elements the queue can hold |