Create a thread-enabled allocator adapter for the specified allocator.
Declared in <bdlma_concurrentallocatoradapter.h>
ConcurrentAllocatorAdapter(
bslmt::Mutex* mutex,
bslma::Allocator* basicAllocator);
Create a thread-enabled allocator adapter that uses the specified mutex to synchronize access to the specified basicAllocator. If basicAllocator is 0, the currently installed default allocator is used.
| Name | Description |
|---|---|
| mutex | mutex used to synchronize access to the allocator |
| basicAllocator | memory allocator; null uses the default |