| author | |
| committer | |
| log | 1ae969e5299ea71231e7045110332b23989e653c |
| tree | f3855a1ff6618c899fe32ca8ab68a0cbaeb4c56a |
| parent | ca1e61b851351ec66ee3f1937586a2f9d02bbafc |
2 files changed, 3 insertions(+), 3 deletions(-)
lib/std/Thread/Futex.zig+2-2| ... | ... | @@ -444,7 +444,7 @@ test "Futex - Broadcast" { |
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | try (struct { |
| 447 | threads: [10]*std.Thread = undefined, | |
| 447 | threads: [10]std.Thread = undefined, | |
| 448 | 448 | broadcast: Atomic(u32) = Atomic(u32).init(0), |
| 449 | 449 | notified: Atomic(usize) = Atomic(usize).init(0), |
| 450 | 450 | |
| ... | ... | @@ -475,7 +475,7 @@ test "Futex - Broadcast" { |
| 475 | 475 | for (self.threads) |*thread| |
| 476 | 476 | thread.* = try std.Thread.spawn(runReceiver, &self); |
| 477 | 477 | defer for (self.threads) |thread| |
| 478 | thread.wait(); | |
| 478 | thread.join(); | |
| 479 | 479 | |
| 480 | 480 | std.time.sleep(16 * std.time.ns_per_ms); |
| 481 | 481 | self.broadcast.store(BROADCAST_SENT, .Monotonic); |
lib/std/event/loop.zig+1-1| ... | ... | @@ -183,7 +183,7 @@ pub const Loop = struct { |
| 183 | 183 | resume_node_count, |
| 184 | 184 | ); |
| 185 | 185 | |
| 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); | |
| 187 | 187 | |
| 188 | 188 | try self.initOsData(extra_thread_count); |
| 189 | 189 | errdefer self.deinitOsData(); |