Thread‐enabled adapter that synchronizes access to a decorated allocator.
Synopsis
Declared in <bdlma_concurrentallocatoradapter.h>
class ConcurrentAllocatorAdapter
: public bslma::Allocator
Description
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.
Base Classes
Name |
Description |
Pure abstract protocol for clients and suppliers of raw memory. |
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 for the specified allocator. |
|
Destroy this thread‐enabled allocator adapter. |
|
|
Return the memory block at the specified |
|
|
|
|
|
Static Member Functions
Name |
Description |
Throw |
Protected Member Functions
Name |
Description |
|
Return a newly allocated block of at least |
|
Return the memory block at |
|
Return whether this allocator can exchange memory with |
Created with MrDocs