diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-15 12:31:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-15 12:31:17 -0800 |
| commit | 35686262f503372bb9f38a71b891fd19b30adecd (patch) | |
| tree | 5e9d3af75fc0c3d89ee001e2c922946fabb7d6ac /lib/std/atomic/queue.zig | |
| parent | 2faf8c53d226cec1445156cafdec59af5e909fb2 (diff) | |
| parent | 19f893c6bbb3f5ab4e8d943b0ac2fefa94e5d666 (diff) | |
| download | zig-35686262f503372bb9f38a71b891fd19b30adecd.tar.gz zig-35686262f503372bb9f38a71b891fd19b30adecd.zip | |
Merge pull request #7785 from ziglang/std-thread-primitives
organize std lib concurrency primitives and add RwLock
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 fa3711cd9f..f5f63944ab 100644 --- a/lib/std/atomic/queue.zig +++ b/lib/std/atomic/queue.zig @@ -16,7 +16,7 @@ pub fn Queue(comptime T: type) type { return struct { head: ?*Node, tail: ?*Node, - mutex: std.Mutex, + mutex: std.Thread.Mutex, pub const Self = @This(); pub const Node = std.TailQueue(T).Node; @@ -27,7 +27,7 @@ pub fn Queue(comptime T: type) type { return Self{ .head = null, .tail = null, - .mutex = std.Mutex{}, + .mutex = std.Thread.Mutex{}, }; } |
