8#ifndef INCLUDED_BDLMA_CONCURRENTPOOLALLOCATOR
9#define INCLUDED_BDLMA_CONCURRENTPOOLALLOCATOR
603#include <bdlscm_version.h>
644 k_MAGIC_NUMBER = 0x111902,
681 int d_maxBlocksPerChunk;
688 ConcurrentPoolAllocator(
const ConcurrentPoolAllocator&);
689 ConcurrentPoolAllocator& operator=(
const ConcurrentPoolAllocator&);
719 int maxBlocksPerChunk,
747 int maxBlocksPerChunk,
808 if (d_initialized == k_INITIALIZED) {
809 d_pool.
object().release();
816 if (d_initialized == k_INITIALIZED) {
817 d_pool.
object().reserveCapacity(numObjects);
Definition bdlma_concurrentpoolallocator.h:635
void reserveCapacity(int numObjects)
Definition bdlma_concurrentpoolallocator.h:814
ConcurrentPoolAllocator(bsls::BlockGrowth::Strategy growthStrategy, int maxBlocksPerChunk, bslma::Allocator *basicAllocator=0)
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
ConcurrentPoolAllocator(bsls::BlockGrowth::Strategy growthStrategy, bslma::Allocator *basicAllocator=0)
size_type blockSize() const
Definition bdlma_concurrentpoolallocator.h:823
ConcurrentPoolAllocator(size_type blockSize, bslma::Allocator *basicAllocator=0)
ConcurrentPoolAllocator(size_type blockSize, bsls::BlockGrowth::Strategy growthStrategy, int maxBlocksPerChunk, bslma::Allocator *basicAllocator=0)
bsls::Types::size_type size_type
Definition bdlma_concurrentpoolallocator.h:639
~ConcurrentPoolAllocator() BSLS_KEYWORD_OVERRIDE
Destroy this pool allocator.
ConcurrentPoolAllocator(bslma::Allocator *basicAllocator=0)
ConcurrentPoolAllocator(size_type blockSize, bsls::BlockGrowth::Strategy growthStrategy, bslma::Allocator *basicAllocator=0)
void release()
Definition bdlma_concurrentpoolallocator.h:806
void * allocate(size_type size) BSLS_KEYWORD_OVERRIDE
Definition bslma_allocator.h:545
Definition bsls_atomic.h:744
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:695
Definition bdlma_alignedallocator.h:278
AlignmentToType< BSLS_MAX_ALIGNMENT >::Type MaxAlignedType
Definition bsls_alignmentutil.h:307
Strategy
Definition bsls_blockgrowth.h:172
std::size_t size_type
Definition bsls_types.h:126
Definition bsls_objectbuffer.h:277
TYPE & object()
Definition bsls_objectbuffer.h:352