aboutsummaryrefslogtreecommitdiff
path: root/lib/std/heap/ThreadSafeAllocator.zig
AgeCommit message (Collapse)Author
2025-02-06std.heap.ThreadSafeAllocator: update to new Allocator APIAndrew Kelley
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-03-15add std.heap.ThreadSafeAllocatorAndrew Kelley
This wraps any allocator and makes it thread-safe by using a mutex.