about summary refs log tree commit diff
path: root/library/std/src/sys/pal/hermit/futex.rs
AgeCommit message (Collapse)AuthorLines
2025-04-27use generic Atomic type where possibleChristopher Durham-6/+6
in core/alloc/std only for now, and ignoring test files Co-authored-by: Pavel Grigorenko <GrigorenkoPV@ya.ru>
2024-10-17Abstract the state type for futexesPaul Menage-2/+7
In the same way that we expose SmallAtomic and SmallPrimitive to allow Windows to use a value other than an AtomicU32 for its futex state, this patch switches the primary futex state type from AtomicU32 to futex::Atomic. The futex::Atomic type should be usable as an atomic value with underlying primitive type equal to futex::Primitive. This allows supporting the futex API on systems where the underlying kernel futex implementation requires more state than simply an AtomicU32. All in-tree futex implementations simply define {Atomic,Primitive} directly as {AtomicU32,u32}.
2024-07-16Use futex.rs for Windows thread parkingChris Denton-0/+5
2024-06-07add HermitOS support of vectored read/write operationsStefan Lankes-1/+1
In general, the I/O interface of hermit-abi is more POSIX-like interface. Consequently, platform abstraction layer for HermitOS has slightly adjusted and some inaccuracies remove.
2024-04-23increase the readability by using the unique name for the hermit-abiStefan Lankes-8/+8
Take up suggestion from the discussions within rust-lang/rust#115984 to increase readability.
2024-01-11std: begin moving platform support modules into `pal`joboet-0/+39