AW: RFC: POSIX timers and threads in a realtime context
Zack Weinberg
zackw@panix.com
Tue Oct 6 15:38:00 GMT 2015
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
More information about the Libc-alpha
mailing list