update std lib and compiler sources to new for loop syntax
This commit is contained in:
@@ -54,7 +54,7 @@ test "Thread.Semaphore" {
|
||||
var n: i32 = 0;
|
||||
var ctx = TestContext{ .sem = &sem, .n = &n };
|
||||
|
||||
for (threads) |*t| t.* = try std.Thread.spawn(.{}, TestContext.worker, .{&ctx});
|
||||
for (&threads) |*t| t.* = try std.Thread.spawn(.{}, TestContext.worker, .{&ctx});
|
||||
for (threads) |t| t.join();
|
||||
sem.wait();
|
||||
try testing.expect(n == num_threads);
|
||||
|
||||
Reference in New Issue
Block a user