Sergey Bugaev, le mer. 15 sept. 2021 17:14:00 +0300, a ecrit: > > Even if for now they are actually locks and not rwlocks, the day we fix > > that the rwlocking of dl_pthread_threads_lock will get fixed alongside. > > May I ask, why are rwlocks unimplemented? Is it just that nobody has > done the work,
This, yes, as usual :) > And HTL of course has its own rwlocks implementation. Would it make > sense to me to spend some time to try and write a __libc_rwlock based > on them, or are there some obstacles? Well, at some point we'll probably want to just do like nptl and simply #define __libc_rwlock pthread_rwlock, so it's probably not worth spending time on making a separate __libc_rwlock implementation, and rather spend it on making pthread_rwlock use gsync, like was done for pthread_mutex and sem, and then we can just #define __libc_rwlock pthread_rwlock. Samuel