diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-02-28 20:42:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-28 20:42:34 -0800 |
| commit | 9550db33cbb7dadd555842ef6d7214660e2b00d6 (patch) | |
| tree | ffcf41a01dc8a55f06f5a630ed174550be33dad3 /lib/std/atomic/queue.zig | |
| parent | a5a3ad4f956bae1ca0e5a49de2e9ac7145170039 (diff) | |
| parent | d3d3e55fae2299d1ff594c77da2f1f41f44ab525 (diff) | |
| download | zig-9550db33cbb7dadd555842ef6d7214660e2b00d6.tar.gz zig-9550db33cbb7dadd555842ef6d7214660e2b00d6.zip | |
Merge pull request #8097 from LemonBoy/thread-spawn-order
std: Swap arguments in Thread.spawn
Diffstat (limited to 'lib/std/atomic/queue.zig')
| -rw-r--r-- | lib/std/atomic/queue.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/atomic/queue.zig b/lib/std/atomic/queue.zig index f5f63944ab..4e427a1669 100644 --- a/lib/std/atomic/queue.zig +++ b/lib/std/atomic/queue.zig @@ -216,11 +216,11 @@ test "std.atomic.Queue" { var putters: [put_thread_count]*std.Thread = undefined; for (putters) |*t| { - t.* = try std.Thread.spawn(&context, startPuts); + t.* = try std.Thread.spawn(startPuts, &context); } var getters: [put_thread_count]*std.Thread = undefined; for (getters) |*t| { - t.* = try std.Thread.spawn(&context, startGets); + t.* = try std.Thread.spawn(startGets, &context); } for (putters) |t| |
