vutil ~master (2015-03-22T03:52:14Z)
Dub
Repo
LockAllocator
vutil
memory
Simple proxy allocator protecting its base allocator with a mutex.
class
LockAllocator :
Allocator
{
this
(Allocator base);
void
[]
alloc
(size_t sz);
void
[]
realloc
(void[] mem, size_t new_sz);
void
free
(void[] mem);
}
Constructors
this
this
(Allocator base)
Undocumented in source.
Members
Functions
alloc
void
[]
alloc
(size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void
free
(void[] mem)
Undocumented in source.
realloc
void
[]
realloc
(void[] mem, size_t new_sz)
Undocumented in source.
Inherited Members
From Allocator
alignment
enum
size_t
alignment
;
Undocumented in source.
alignmentMask
enum
size_t
alignmentMask
;
Undocumented in source.
alloc
void
[]
alloc
(size_t sz)
Undocumented in source.
realloc
void
[]
realloc
(void[] mem, size_t new_sz)
Undocumented in source.
free
void
free
(void[] mem)
Undocumented in source.
Meta
Source
See Implementation
vutil
memory
classes
AutoFreeListAllocator
DebugAllocator
FreeListAlloc
GCAllocator
LockAllocator
MallocAllocator
PoolAllocator
functions
allocArray
allocObject
defaultAllocator
freeArray
manualAllocator
interfaces
Allocator
structs
FreeListRef
templates
AllocSize
FreeListObjectAlloc
Simple proxy allocator protecting its base allocator with a mutex.