pub fn threadSafeAllocator(self: *FixedBufferAllocator) Allocator self: *FixedBufferAllocator34
35
36
37
38
39
40
41
42
43
44pub fn threadSafeAllocator(self: *FixedBufferAllocator) Allocator {
return .{
.ptr = self,
.vtable = &.{
.alloc = threadSafeAlloc,
.resize = threadSafeResize,
.remap = threadSafeRemap,
.free = threadSafeFree,
},
};
}
Provides a lock free thread safe
Allocatorinterface to the underlyingFixedBufferAllocatorUsing this at the same time as the interface returned by
allocatoris not thread safe.