This class defines an implementation of the bslma::Allocator protocol that "decorates" (wraps) a concrete bslma::Allocator to ensure thread‐safe access to the decorated allocator.
Synopsis
Declared in <bdlma_concurrentallocatoradapter.h>
class ConcurrentAllocatorAdapter
: public bslma::Allocator
Base Classes
Name |
Description |
This protocol class provides a pure abstract interface and contract for clients and suppliers of raw memory. If the requested memory cannot be returned, the contract requires that an |
Type Aliases
Name |
Description |
Alias for an unsigned integral type capable of representing the number of bytes in this platform's virtual address space. |
Member Functions
Name |
Description |
|
Create a thread‐enabled allocator adapter that uses the specified |
|
Destroy this thread‐enabled allocator adapter. |
|
|
Return the memory at the specified |
|
|
|
|
|
Static Member Functions
Name |
Description |
Throw |
Protected Member Functions
Name |
Description |
|
Return a newly allocated block of memory of (at least) the specified positive |
|
Return the memory block at the specified |
|
Return |
Created with MrDocs