authorgravatar for 37382384+kaihlavirta@users.noreply.github.comMikko Kaihlavirta <37382384+kaihlavirta@users.noreply.github.com> 2022-07-01 00:09:36+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-07-01 00:09:36+03:00
logbe18459c81f831e455750e62f37dae6aeef62f1d
tree1f2f1d3e1169b7cfa35a060b35e80e91d42f7559
parentc248af3bdcd17c334e742d53a7ac7bda2422a688
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

std.event: use .{} to initiate Lock to unlocked state

Co-authored-by: Mikko Kaihlavirta <kaihlavirta@gmail.com>

2 files changed, 2 insertions(+), 2 deletions(-)

lib/std/event/group.zig+1-1
......@@ -35,7 +35,7 @@ pub fn Group(comptime ReturnType: type) type {
3535 return Self{
3636 .frame_stack = Stack.init(),
3737 .alloc_stack = AllocStack.init(),
38 .lock = Lock.init(),
38 .lock = .{},
3939 .allocator = allocator,
4040 };
4141 }
lib/std/event/locked.zig+1-1
......@@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type {
2222
2323 pub fn init(data: T) Self {
2424 return Self{
25 .lock = Lock.init(),
25 .lock = .{},
2626 .private_data = data,
2727 };
2828 }