This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: AW: RFC: POSIX timers and threads in a realtime context
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Zack Weinberg <zackw at panix dot com>
- Cc: Rich Felker <dalias at libc dot org>, "Warlich, Christof" <christof dot warlich at siemens dot com>, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Tue, 6 Oct 2015 16:08:01 +0000
- Subject: Re: AW: RFC: POSIX timers and threads in a realtime context
- Authentication-results: sourceware.org; auth=none
- References: <6D83E89737156549AEA25EF9ED712C5D158489 at DEFTHW99EK1MSX dot ww902 dot siemens dot net> <20151005160303 dot GK8645 at brightrain dot aerifal dot cx> <6D83E89737156549AEA25EF9ED712C5D1585ED at DEFTHW99EK1MSX dot ww902 dot siemens dot net> <alpine dot DEB dot 2 dot 10 dot 1510061203190 dot 4225 at digraph dot polyomino dot org dot uk> <20151006143203 dot GO8645 at brightrain dot aerifal dot cx> <alpine dot DEB dot 2 dot 10 dot 1510061457370 dot 21786 at digraph dot polyomino dot org dot uk> <CAKCAbMhj0KJE0Gb_EJvwX_EXTJPwefK7xQD=ewWd+JpEEae83Q at mail dot gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1510061545230 dot 21786 at digraph dot polyomino dot org dot uk> <CAKCAbMh4JuqXSyc_hRZhHO=A0o8Q1hMOqMf86tmKabS_rLT74A at mail dot gmail dot com>
On Tue, 6 Oct 2015, Zack Weinberg wrote:
> On Tue, Oct 6, 2015 at 11:46 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> > On Tue, 6 Oct 2015, Zack Weinberg wrote:
> >
> >> 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.
> >
> > However, my understanding is that there are several other interfaces where
> > tids are needed as well. (The two proposals need not be mutually
> > exclusive.)
>
> Do you have a list? That would really help me, at least, understand
> the tradeoffs.
Several are mentioned in bug 6399. (Note that some cases may be ones
where POSIX specifies that a pid not a tid is taken - fixing such POSIX
conformance bugs would require new symbol versions for the affected
functions, and possibly new kernel interfaces to make it possible to pass
a pid there.)
--
Joseph S. Myers
joseph@codesourcery.com