diff options
| author | protty <45520026+kprotty@users.noreply.github.com> | 2021-05-31 11:11:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-31 11:11:30 -0500 |
| commit | eb6975f0889db4c2c29d47bb959bc39bd0a9b167 (patch) | |
| tree | 688143d7828e2717ed2246c9a2482d8f22433976 /src | |
| parent | 57cf9f7ea6d018714cf4afa711799c67ff730f12 (diff) | |
| download | zig-eb6975f0889db4c2c29d47bb959bc39bd0a9b167.tar.gz zig-eb6975f0889db4c2c29d47bb959bc39bd0a9b167.zip | |
std.sync.atomic: extended atomic helper functions (#8866)
- deprecates `std.Thread.spinLoopHint` and moves it to `std.atomic.spinLoopHint`
- added an Atomic(T) generic wrapper type which replaces atomic.Bool and atomic.Int
- in Atomic(T), selectively expose member functions depending on T and include bitwise atomic methods when T is an Integer
- added fence() and compilerFence() to std.atomic
Diffstat (limited to 'src')
| -rw-r--r-- | src/BuiltinFn.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BuiltinFn.zig b/src/BuiltinFn.zig index 11c6422f98..aa0ba0515d 100644 --- a/src/BuiltinFn.zig +++ b/src/BuiltinFn.zig @@ -400,7 +400,7 @@ pub const list = list: { "@fence", .{ .tag = .fence, - .param_count = 0, + .param_count = 1, }, }, .{ |
