tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] libpthread NOLOAD removal
hi,
> On Mon, Feb 18, 2013 at 10:50:58AM +0000, YAMAMOTO Takashi wrote:
>> what "ptm->ptm_owner = (thr_t) -1" means?
>
> -1 is what pthread_self returns in non threaded apps. I agree we
> need a constat here, but which one? _PT_SELF_NOTHREADED ?
it means that the representation of a locked mutex is incompatible
between w/ and w/o libpthread. it contradicts the purpose of
the patch, isn't it?
i tend to think it's a good idea to fold the most of libpthread
into libc. but pthread_self and TLS are tricky.
YAMAMOTO Takashi
>
> --
> Emmanuel Dreyfus
> manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index