From 1ae969e5299ea71231e7045110332b23989e653c Mon Sep 17 00:00:00 2001 From: kprotty Date: Sun, 20 Jun 2021 10:37:40 -0500 Subject: [PATCH] std.Thread: even more typo fixes --- lib/std/Thread/Futex.zig | 4 ++-- lib/std/event/loop.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Thread/Futex.zig b/lib/std/Thread/Futex.zig index 971f1bd095f473268d2b709ee5024e5d3be30cd9..033ecf688da387e2afb48405819f0e6778fcf6bb 100644 --- a/lib/std/Thread/Futex.zig +++ b/lib/std/Thread/Futex.zig @@ -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); diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index 26cbf3b988c7e0ac89fb52d86d0877ac311b3d25..9c8550d459d16ef06c8c12d0bfa5549590aef26f 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -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(); -- 2.54.0