threadHeap

An unaligned thread local allocator.

It can be faster than heap as it doesn't require a synchronization.

Note: Class destructors are called asynchronously from GC thread on collection so threadHeap in a destructor may reflect different thread than the one the class instance was created and used in.

@property ref @safe nothrow
threadHeap
()

Bugs

On non-Windows systems it behaves just like heap i.e. it may lock shared mutex.

Meta