std.Thread: even more typo fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user