aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-07-26 14:03:20 -0700
committerDavid Rubin <daviru007@icloud.com>2024-07-26 14:53:50 -0700
commitc20def73af49bac435d21cd058e7b9612ef3d2a5 (patch)
tree6e2378eeea681b17f263ec899a232afc5c87474d /lib/std/Thread.zig
parenta7498a6a53b2aa50274aa425c91e2e449a736cf4 (diff)
downloadzig-c20def73af49bac435d21cd058e7b9612ef3d2a5.tar.gz
zig-c20def73af49bac435d21cd058e7b9612ef3d2a5.zip
riscv: workarounds for riscv threading
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 c3802cc1fe..8775b9a52e 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -385,7 +385,7 @@ pub fn yield() YieldError!void {
}
/// State to synchronize detachment of spawner thread to spawned thread
-const Completion = std.atomic.Value(enum(u8) {
+const Completion = std.atomic.Value(enum(if (builtin.zig_backend == .stage2_riscv64) u32 else u8) {
running,
detached,
completed,