Commit 1ae969e529

kprotty <kbutcher6200@gmail.com>
2021-06-20 17:37:40
std.Thread: even more typo fixes
1 parent ca1e61b
Changed files (2)
lib
std
event
Thread
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();
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);