tech-userlevel archive

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

Re: Moving pthread_(cond|mutex) to libc

On Tue, Jan 22, 2013 at 08:00:33AM +0000, David Laight wrote:
> The idea is to make the libc stubs modify the data areas of the
> mutex (and maybe allow condvar be created) so that libpthread
> can be loaded later.

Right, I understand better now. Here is a secodn attempt:

I tried to avoid duplicating definitions between libc and libpthread,
with a preference for having a depencency on libc code in libpthread,
but it might not be the right approach.

There is also the case of pthread_cond_wait_nothread() which I 
completely moved to libc. I removed pthread__testcancel() and
pthread_mutex_unlock() calls since I could not see how they could
be useful, as this is called only when there is a single thread.

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index