diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-06-20 10:08:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 10:08:22 +0200 |
| commit | 14ad8378a19dbbf84e0be491292019356b9e8752 (patch) | |
| tree | ffcbc32673018b97c13c9f930013a772c3b79e07 /lib/std/Thread.zig | |
| parent | cf1a7bbd44b9542552c7b5dc6532aafb5142bf7a (diff) | |
| parent | 89d15a8d47fdfe41ae650e399d258de3184e6b4d (diff) | |
| download | zig-14ad8378a19dbbf84e0be491292019356b9e8752.tar.gz zig-14ad8378a19dbbf84e0be491292019356b9e8752.zip | |
Merge pull request #23464 from rootbeer/futex-casts
Linux futex (v1 and v2) API fixes, tests and Ziggification
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index fe3bf0fcea..bb46bd3f24 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -1539,10 +1539,10 @@ const LinuxThreadImpl = struct { continue; } - switch (linux.E.init(linux.futex_wait( + switch (linux.E.init(linux.futex_4arg( &self.thread.child_tid.raw, - linux.FUTEX.WAIT, - tid, + .{ .cmd = .WAIT, .private = false }, + @bitCast(tid), null, ))) { .SUCCESS => continue, |
