diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2021-05-20 17:07:06 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-05-20 17:14:18 +0200 |
| commit | 5b850d5c9251900962e52154eb0fb9c2a344476d (patch) | |
| tree | 56978e4ad48b44dc723a24d9b62c4d2fe6ab8a32 /lib/std/Thread.zig | |
| parent | 4a582734fd84f2096ca9bb559387ddd04c70ed57 (diff) | |
| download | zig-5b850d5c9251900962e52154eb0fb9c2a344476d.tar.gz zig-5b850d5c9251900962e52154eb0fb9c2a344476d.zip | |
Run `zig fmt` on src/ and lib/std/
This replaces callconv(.Inline) with the more idiomatic inline keyword.
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index a85219a458..ad82e4beef 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -68,7 +68,7 @@ else switch (std.Target.current.os.tag) { }; /// Signals the processor that it is inside a busy-wait spin-loop ("spin lock"). -pub fn spinLoopHint() callconv(.Inline) void { +pub inline fn spinLoopHint() void { switch (std.Target.current.cpu.arch) { .i386, .x86_64 => { asm volatile ("pause" ::: "memory"); |
