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: AW: RFC: POSIX timers and threads in a realtime context


On Tue, Oct 6, 2015 at 10:59 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Tue, 6 Oct 2015, Rich Felker wrote:
>> This latter approach would not solve the issue being discussed here --
>> a separate/third-party libinux-syscalls could not justifiably inspect
>> the internals of the pthread structure.
>
> Then that needs to be included in the analysis message starting the new
> thread - an explanation of why libinux-syscalls would not be appropriate
> for pthread_gettid_np.  (Note that the libinux-syscalls proposal is for a
> library built with glibc and possibly linked in through the libc.so linker
> script, not something third-party.)

It seems to me that Christof's second proposal (add a SIGEV_PTHREAD_ID
that takes a pthread_t) is *much* simpler than doing all this work,
and also far more likely to get standardized.

zw


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