You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK Mutex and RwLock try to support priority inheritance (and that is why it uses pthread mutex in macOS). I'm curious why they just use normal futexes (FUTEX_WAIT_BITSET and FUTEX_WAKE in sys/pal/unix/futex.rs) and do not utilize priority-inheritance futexes on platforms that support PI futexes, namely FUTEX_LOCK_PI in Linux and UMUTEX_PRIO_INHERIT in FreeBSD. IMO PI futexes have better cooperation with the system scheduler.
The text was updated successfully, but these errors were encountered:
Maybe a duplication of #128231?
AFAIK
Mutex
andRwLock
try to support priority inheritance (and that is why it uses pthread mutex in macOS). I'm curious why they just use normal futexes (FUTEX_WAIT_BITSET
andFUTEX_WAKE
insys/pal/unix/futex.rs
) and do not utilize priority-inheritance futexes on platforms that support PI futexes, namelyFUTEX_LOCK_PI
in Linux andUMUTEX_PRIO_INHERIT
in FreeBSD. IMO PI futexes have better cooperation with the system scheduler.The text was updated successfully, but these errors were encountered: