This commit is contained in:
kprotty
2021-06-30 21:49:38 -05:00
parent 2309c81a78
commit 98106b09d5
3 changed files with 12 additions and 13 deletions

View File

@@ -792,7 +792,7 @@ test "Thread.join" {
try event.init();
defer event.deinit();
const thread = try Thread.spawn(.{}, testIncrementNotify, .{&value, &event});
const thread = try Thread.spawn(.{}, testIncrementNotify, .{ &value, &event });
thread.join();
try std.testing.expectEqual(value, 1);
@@ -806,9 +806,9 @@ test "Thread.detach" {
try event.init();
defer event.deinit();
const thread = try Thread.spawn(.{}, testIncrementNotify, .{&value, &event});
const thread = try Thread.spawn(.{}, testIncrementNotify, .{ &value, &event });
thread.detach();
event.wait();
try std.testing.expectEqual(value, 1);
}
}