Provides a lock free thread safe Allocator interface to the underlying FixedBufferAllocator
Using this at the same time as the interface returned by allocator is not thread safe.
pub fn threadSafeAllocator(self: *FixedBufferAllocator) Allocator
pub fn threadSafeAllocator(self: *FixedBufferAllocator) Allocator {
return .{
.ptr = self,
.vtable = &.{
.alloc = threadSafeAlloc,
.resize = threadSafeResize,
.remap = threadSafeRemap,
.free = threadSafeFree,
},
};
}