mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Remove unnecessary allocator from mutex
This commit is contained in:
parent
184128fd9e
commit
c1fb97aef6
@ -306,12 +306,6 @@ const TestContext = struct {
|
||||
};
|
||||
|
||||
test "std.Mutex" {
|
||||
var plenty_of_memory = try std.heap.page_allocator.alloc(u8, 300 * 1024);
|
||||
defer std.heap.page_allocator.free(plenty_of_memory);
|
||||
|
||||
var fixed_buffer_allocator = std.heap.ThreadSafeFixedBufferAllocator.init(plenty_of_memory);
|
||||
var a = &fixed_buffer_allocator.allocator;
|
||||
|
||||
var mutex = Mutex.init();
|
||||
defer mutex.deinit();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user