This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dummy pthread functions in libc considered harmful


Alexander Monakov, le Mon 31 Aug 2015 17:54:46 +0300, a écrit :
> As a result, a libc "stub" mutex must:
> 
>  - contain a full implementation for process-shared mutexes
>  - for non-shared mutexes in single-threaded processes, modify them
>    consistently with non-stub implementation (but modifications need not be
>    atomic)
> 
> Does Glibc do the former? (the bug report is about Glibc not doing the latter)

See nptl/forward.c: all Glibc does in those hooks is to return 0.

Samuel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]