std.Thread: even more typo fixes

This commit is contained in:
kprotty
2021-06-20 10:37:40 -05:00
parent ca1e61b851
commit 1ae969e529
2 changed files with 3 additions and 3 deletions

View File

@@ -444,7 +444,7 @@ test "Futex - Broadcast" {
}
try (struct {
threads: [10]*std.Thread = undefined,
threads: [10]std.Thread = undefined,
broadcast: Atomic(u32) = Atomic(u32).init(0),
notified: Atomic(usize) = Atomic(usize).init(0),
@@ -475,7 +475,7 @@ test "Futex - Broadcast" {
for (self.threads) |*thread|
thread.* = try std.Thread.spawn(runReceiver, &self);
defer for (self.threads) |thread|
thread.wait();
thread.join();
std.time.sleep(16 * std.time.ns_per_ms);
self.broadcast.store(BROADCAST_SENT, .Monotonic);

View File

@@ -183,7 +183,7 @@ pub const Loop = struct {
resume_node_count,
);
self.extra_threads = try self.arena.allocator.alloc(*Thread, extra_thread_count);
self.extra_threads = try self.arena.allocator.alloc(Thread, extra_thread_count);
try self.initOsData(extra_thread_count);
errdefer self.deinitOsData();