Re: [PATCH v4 00/15] Add futex2 syscalls

From
Adhemerval Zanella <hidden>
Date
2021-06-08 18:23:00
Also in
linux-kselftest, lkml
Reply to
Florian Weimer, 2021-06-08

On 08/06/2021 15:19, Florian Weimer wrote:
* Adhemerval Zanella:
quoted
Also currently we don't have a specific usage.  The proposed patch to
add the 'pthread_mutex_lock_any' and 'pthreada_timedlock_any' [3] 
also did not gave much detail in realword usages or how it can be
leveraged.
The current rwlock implementation in glibc uses a torn 32-bit futex read
which is part of an atomically updated 64-bit word.  That's just really,
really ugly, and I suspect we could make that go away with futex2.
You are right, I had in the mind the multiple wait proposed by this
patch and by the glib RFC one.  Not only rwlock, but the posix
semaphore might also be simplified on 32 bits I think.
Thread (2 messages) 2 messages, 2 authors, last reply 2021-06-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help