aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-22 20:56:30 -0400
committerGitHub <noreply@github.com>2021-05-22 20:56:30 -0400
commit1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7 (patch)
tree5311dc81615ff9efa2b4840070371f54182f8bee /lib/std/Thread.zig
parent9baf8917725ede02d9fc1aeebe253842174ee57b (diff)
parent563ea60a86a733f53f2394a11cb9ec4e56063fa3 (diff)
downloadzig-1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7.tar.gz
zig-1c636e2564e2fc2e8e4b6b1edbc782592ee3d2d7.zip
Merge pull request #8844 from ifreund/inline
Support inline keyword as well as callconv(.Inline)
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
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");