4 #include <samchon/library/RWMutex.hpp> 51 :
public std::allocator<T>
54 typedef std::allocator<T> super;
103 template<
class _U,
class... _Args>
108 super::construct(ptr, args);
168 auto allocate(size_type n, std::allocator<void>::const_pointer hint = NULL) -> pointer
172 super::allocate(n, hint);
200 super::deallocate(ptr, size);
An allocator ensuring concurrency.
void deallocate(pointer ptr, size_type size)
Lock when deallocated [Inherited] Release block of storage.
auto getMutex() -> RWMutex &
Get rw_mutex.
void destroy(_U *ptr)
Lock when destroyed [Inherited] Destory an object.
RWMutex rw_mutex
A rw_mutex for handling concurrency.
void construct(_U *ptr, _Args &&...args)
Lock when constructed. [Inherited] Construct an object. .
auto allocate(size_type n, std::allocator< void >::const_pointer hint=NULL) -> pointer
Lock when allocated [Inherited] Allocate block of storage.