lkml.org 
[lkml]   [2021]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4 00/15] Add futex2 syscalls
Date
* Adhemerval Zanella:

> 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.

Thanks,
Florian

\
 
 \ /
  Last update: 2021-06-08 20:20    [W:0.451 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site