riscv: workarounds for riscv threading

This commit is contained in:
David Rubin
2024-07-26 14:03:20 -07:00
parent a7498a6a53
commit c20def73af
2 changed files with 1 additions and 15 deletions

View File

@@ -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,