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 {...@@ -35,7 +35,7 @@ pub fn Group(comptime ReturnType: type) type {
35 return Self{35 return Self{
36 .frame_stack = Stack.init(),36 .frame_stack = Stack.init(),
37 .alloc_stack = AllocStack.init(),37 .alloc_stack = AllocStack.init(),
38 .lock = Lock.init(),38 .lock = .{},
39 .allocator = allocator,39 .allocator = allocator,
40 };40 };
41 }41 }
lib/std/event/locked.zig+1-1
...@@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type {...@@ -22,7 +22,7 @@ pub fn Locked(comptime T: type) type {
2222
23 pub fn init(data: T) Self {23 pub fn init(data: T) Self {
24 return Self{24 return Self{
25 .lock = Lock.init(),25 .lock = .{},
26 .private_data = data,26 .private_data = data,
27 };27 };
28 }28 }