aboutsummaryrefslogtreecommitdiff
path: root/lib/std/atomic/queue.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-02-28 20:42:34 -0800
committerGitHub <noreply@github.com>2021-02-28 20:42:34 -0800
commit9550db33cbb7dadd555842ef6d7214660e2b00d6 (patch)
treeffcf41a01dc8a55f06f5a630ed174550be33dad3 /lib/std/atomic/queue.zig
parenta5a3ad4f956bae1ca0e5a49de2e9ac7145170039 (diff)
parentd3d3e55fae2299d1ff594c77da2f1f41f44ab525 (diff)
downloadzig-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.zig4
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|