aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/RwLock.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-11-23 04:55:28 -0500
committerGitHub <noreply@github.com>2023-11-23 04:55:28 -0500
commit2bffd810157a8e7c0b2500a13921dd8c45694b8a (patch)
tree2f8cfbc0403c5bd492ca68f1aa7ba6b02886ef2c /lib/std/Thread/RwLock.zig
parent115ec25f2e4eed5033f34eaee8bf3477ff417ecc (diff)
parent70931dbdea96d92feb60406c827e39e566317863 (diff)
downloadzig-2bffd810157a8e7c0b2500a13921dd8c45694b8a.tar.gz
zig-2bffd810157a8e7c0b2500a13921dd8c45694b8a.zip
Merge pull request #18085 from ziglang/std-atomics
rework std.atomic
Diffstat (limited to 'lib/std/Thread/RwLock.zig')
-rw-r--r--lib/std/Thread/RwLock.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread/RwLock.zig b/lib/std/Thread/RwLock.zig
index e77db10abb..a05d68df88 100644
--- a/lib/std/Thread/RwLock.zig
+++ b/lib/std/Thread/RwLock.zig
@@ -307,7 +307,7 @@ test "RwLock - concurrent access" {
rwl: RwLock = .{},
writes: usize = 0,
- reads: std.atomic.Atomic(usize) = std.atomic.Atomic(usize).init(0),
+ reads: std.atomic.Value(usize) = std.atomic.Value(usize).init(0),
term1: usize = 0,
term2: usize = 0,