dotfiles/scripts/mzteinit/src/mutex.zig
2024-02-03 00:20:49 +01:00

10 lines
206 B
Zig

const std = @import("std");
/// A version of std.Thread.Mutex that wraps some data.
pub fn Mutex(comptime T: type) type {
return struct {
data: T,
mtx: std.Thread.Mutex = .{},
};
}