mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-02 03:19:54 +02:00
11 lines
207 B
Zig
11 lines
207 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 = .{},
|
|
};
|
|
}
|
|
|