Constructors
Declared in <bdlcc_singleconsumerqueue.h>
Create a thread-aware queue.
explicit
SingleConsumerQueue(bslma::Allocator* basicAllocator = 0);
» more...
Create a thread-aware queue with at least the specified capacity.
explicit
SingleConsumerQueue(
std::size_t capacity,
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| basicAllocator | allocator used to supply memory |
| capacity | minimum capacity of the queue |