mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Linux: Add FUTEX_LOCK_PI2
Linux v5.14.0 introduced a new futex operation called FUTEX_LOCK_PI2. This kernel feature can be used to implement pthread_mutex_clocklock(MONOTONIC)/PI. Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
committed by
Adhemerval Zanella
parent
01d34e934a
commit
dd5adb515c
@ -220,4 +220,12 @@
|
|||||||
# define __ASSUME_FACCESSAT2 0
|
# define __ASSUME_FACCESSAT2 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* The FUTEX_LOCK_PI2 operation was introduced across all architectures in Linux
|
||||||
|
5.14. */
|
||||||
|
#if __LINUX_KERNEL_VERSION >= 0x050e00
|
||||||
|
# define __ASSUME_FUTEX_LOCK_PI2 1
|
||||||
|
#else
|
||||||
|
# define __ASSUME_FUTEX_LOCK_PI2 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* kernel-features.h */
|
#endif /* kernel-features.h */
|
||||||
|
Reference in New Issue
Block a user