mn_lock_storage.hpp
Go to the documentation of this file.
66 : m_lockObjct(lckObject), m_fFilter(_fFilter), m_xTicksToWait(portMAX_DELAY) { allocator::first(); }
144 allocator_impl::deallocate(address, size, (alignment == 0) ? mn::alignment_for(size) : alignment);
Definition: mn_lock.hpp:122
Definition: mn_lock_storage.hpp:40
void destroy(Type *address) noexcept
Deconstruct a object (call deconstructor) and free the memory.
Definition: mn_lock_storage.hpp:169
TFilter filter_type
Definition: mn_lock_storage.hpp:54
size_t size_type
Definition: mn_lock_storage.hpp:48
basic_threadsafed_allocator(const self_type &other) noexcept=delete
void value_type
Definition: mn_lock_storage.hpp:44
pointer allocate(size_t size, size_t alignment)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_lock_storage.hpp:75
pointer allocate(size_t size)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_lock_storage.hpp:92
void set_ticksToWait(unsigned long xTicksToWait)
Definition: mn_lock_storage.hpp:197
mn::ptrdiff_t difference_type
Definition: mn_lock_storage.hpp:47
void lock(unsigned long xTicksToWait=0) const
Definition: mn_lock_storage.hpp:188
basic_threadsafed_allocator() noexcept
Definition: mn_lock_storage.hpp:59
void deallocate(pointer address, size_t size, size_t alignment) noexcept
free() a buffer in a given heap.
Definition: mn_lock_storage.hpp:114
TMutex lock_type
Definition: mn_lock_storage.hpp:52
lock_type m_lockObjct
Definition: mn_lock_storage.hpp:209
void deallocate(pointer address, size_t count, size_t size, size_t alignment) noexcept
free() a buffer in a given heap.
Definition: mn_lock_storage.hpp:139
bool is_locked()
Definition: mn_lock_storage.hpp:202
unsigned long m_xTicksToWait
Definition: mn_lock_storage.hpp:211
TAllocator allocator_impl
Definition: mn_lock_storage.hpp:53
pointer allocate(size_t count, size_t size, size_t alignment=0)
malloc() a buffer in a given TAllocator and cheak with the given TFilter is this okay to alloc
Definition: mn_lock_storage.hpp:104
filter_type m_fFilter
Definition: mn_lock_storage.hpp:210
void deallocate(pointer address, size_t size) noexcept
free() a buffer in a given heap.
Definition: mn_lock_storage.hpp:128
void unlock() const noexcept
Definition: mn_lock_storage.hpp:193
size_t get_max_alocator_size() const noexcept
Get the maximal size to allocate.
Definition: mn_lock_storage.hpp:182
Type * construct(Args &&... args)
Construct a object from allocated impl.
Definition: mn_lock_storage.hpp:155
self_type & operator=(const basic_threadsafed_allocator &other) noexcept=delete
basic_threadsafed_allocator(const lock_type &lckObject) noexcept
Definition: mn_lock_storage.hpp:62
const void * const_pointer
Definition: mn_lock_storage.hpp:46
typename allocator::allocator_category allocator_category
Definition: mn_lock_storage.hpp:42
basic_threadsafed_allocator(const lock_type &lckObject, const filter_type &_fFilter) noexcept
Definition: mn_lock_storage.hpp:65
void * allocate(const TAlloC &alloc, size_t size, size_t alignment, mn::memory::std_allocator_tag)
Definition: mn_allocator_typetraits.hpp:52
void * deallocate(const TAlloC &alloc, void *address, size_t size, size_t alignment, mn::memory::std_allocator_tag)
Definition: mn_allocator_typetraits.hpp:63
Definition: mn_allocator_typetraits.hpp:25