authorgravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2021-06-20 10:37:40-05:00
committergravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2021-06-30 21:49:00-05:00
log1ae969e5299ea71231e7045110332b23989e653c
treef3855a1ff6618c899fe32ca8ab68a0cbaeb4c56a
parentca1e61b851351ec66ee3f1937586a2f9d02bbafc

std.Thread: even more typo fixes


2 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Thread/Futex.zig+2-2
...@@ -444,7 +444,7 @@ test "Futex - Broadcast" {...@@ -444,7 +444,7 @@ test "Futex - Broadcast" {
444 }444 }
445445
446 try (struct {446 try (struct {
447 threads: [10]*std.Thread = undefined,447 threads: [10]std.Thread = undefined,
448 broadcast: Atomic(u32) = Atomic(u32).init(0),448 broadcast: Atomic(u32) = Atomic(u32).init(0),
449 notified: Atomic(usize) = Atomic(usize).init(0),449 notified: Atomic(usize) = Atomic(usize).init(0),
450450
...@@ -475,7 +475,7 @@ test "Futex - Broadcast" {...@@ -475,7 +475,7 @@ test "Futex - Broadcast" {
475 for (self.threads) |*thread|475 for (self.threads) |*thread|
476 thread.* = try std.Thread.spawn(runReceiver, &self);476 thread.* = try std.Thread.spawn(runReceiver, &self);
477 defer for (self.threads) |thread|477 defer for (self.threads) |thread|
478 thread.wait();478 thread.join();
479479
480 std.time.sleep(16 * std.time.ns_per_ms);480 std.time.sleep(16 * std.time.ns_per_ms);
481 self.broadcast.store(BROADCAST_SENT, .Monotonic);481 self.broadcast.store(BROADCAST_SENT, .Monotonic);
lib/std/event/loop.zig+1-1
...@@ -183,7 +183,7 @@ pub const Loop = struct {...@@ -183,7 +183,7 @@ pub const Loop = struct {
183 resume_node_count,183 resume_node_count,
184 );184 );
185185
186 self.extra_threads = try self.arena.allocator.alloc(*Thread, extra_thread_count);186 self.extra_threads = try self.arena.allocator.alloc(Thread, extra_thread_count);
187187
188 try self.initOsData(extra_thread_count);188 try self.initOsData(extra_thread_count);
189 errdefer self.deinitOsData();189 errdefer self.deinitOsData();