[#BloombergLP-bdlma-ConcurrentAllocatorAdapter-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentAllocatorAdapter.adoc[ConcurrentAllocatorAdapter]::ConcurrentAllocatorAdapter
:relfileprefix: ../../../
:mrdocs:

Create a thread&hyphen;enabled allocator adapter that uses the specified `mutex` to synchronize access to the specified `basicAllocator`&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;concurrentallocatoradapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ConcurrentAllocatorAdapter(
    xref:BloombergLP/bslmt/Mutex.adoc[bslmt::Mutex]* mutex,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
