[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH htl v3 2/5] htl: Move thread table to ld.so

From: Samuel Thibault
Subject: Re: [PATCH htl v3 2/5] htl: Move thread table to ld.so
Date: Wed, 15 Sep 2021 16:34:27 +0200
User-agent: NeoMutt/20170609 (1.8.3)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]