mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
std.event: use .{} to initiate Lock to unlocked state
Co-authored-by: Mikko Kaihlavirta <kaihlavirta@gmail.com>
This commit is contained in:
parent
c248af3bdc
commit
be18459c81
@ -35,7 +35,7 @@ pub fn Group(comptime ReturnType: type) type {
|
||||
return Self{
|
||||
.frame_stack = Stack.init(),
|
||||
.alloc_stack = AllocStack.init(),
|
||||
.lock = Lock.init(),
|
||||
.lock = .{},
|
||||
.allocator = allocator,
|
||||
};
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type {
|
||||
|
||||
pub fn init(data: T) Self {
|
||||
return Self{
|
||||
.lock = Lock.init(),
|
||||
.lock = .{},
|
||||
.private_data = data,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user