memory
|
An alias template for allocator_storage using the direct_storage policy with a mutex.
It has a similar effect as allocator_adapter but performs synchronization. The Mutex
will default to std::mutex
if threading is supported, otherwise there is no default.
Typedefs | |
using | allocator_type = typename StoragePolicy::allocator_type |
using | storage_policy = direct_storage< RawAllocator > |
using | mutex = Mutex |
using | is_stateful = typename traits::is_stateful |
Member Functions | |
bool | is_composable () const noexcept |
void * | allocate_node (std::size_t size, std::size_t alignment) |
void * | allocate_array (std::size_t count, std::size_t size, std::size_t alignment) |
void | deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
void | deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
std::size_t | max_node_size () const |
std::size_t | max_array_size () const |
std::size_t | max_alignment () const |
void * | try_allocate_node (std::size_t size, std::size_t alignment) noexcept |
void * | try_allocate_array (std::size_t count, std::size_t size, std::size_t alignment) noexcept |
bool | try_deallocate_node (void *ptr, std::size_t size, std::size_t alignment) noexcept |
bool | try_deallocate_array (void *ptr, std::size_t count, std::size_t size, std::size_t alignment) noexcept |
auto | get_allocator () noexcept -> decltype(std::declval< storage_policy >().get_allocator()) |
auto | get_allocator () const noexcept -> decltype(std::declval< const storage_policy >().get_allocator()) |
auto | lock () noexcept -> implementation_defined |
auto | lock () const noexcept -> implementation_defined |
Related Symbols | |
template<class Mutex , class RawAllocator > | |
auto | make_thread_safe_allocator (RawAllocator &&allocator) -> thread_safe_allocator< typename std::decay< RawAllocator >::type, Mutex > |
|
inherited |
Mutex
will be locked during the operation.
|
inherited |
Mutex
will be locked during the operation. Mutex
will be locked during the operation.
|
noexceptinherited |
Mutex
will be locked during the operation.
|
inherited |
Mutex
will be locked during the operation.
|
inherited |
Mutex
will be locked during the operation.
|
inherited |
Mutex
will be locked during the operation.
|
noexceptinherited |
Mutex
will be locked during the operation. true
.
|
noexceptinherited |
Mutex
will be locked during the operation. true
. Mutex
will be locked during the operation. true
.
|
noexceptinherited |
Mutex
will be locked during the operation. true
.
|
noexceptinherited |
StoragePolicy
. Mutex
.
|
noexceptinherited |
StoragePolicy
. Mutex
.
|
noexceptinherited |
Mutex
will be kept locked.
|
noexceptinherited |
Mutex
will be kept locked.
|
noexceptinherited |
constexpr
.
|
related |