From: Florian Weimer <fweimer@redhat.com>
To: Carlos O'Donell <carlos@redhat.com>
Cc: libc-alpha@sourceware.org,
Adhemerval Zanella <adhemerval.zanella@linaro.org>,
"H.J. Lu" <hjl.tools@gmail.com>
Subject: Re: [PATCH] nptl: Provide a way to block all signals for the timer helper thread
Date: Thu, 14 May 2020 20:30:15 +0200 [thread overview]
Message-ID: <87imgys72g.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <ccc9cc72-2880-8818-34d9-f468fbd14339@redhat.com> (Carlos O'Donell's message of "Thu, 14 May 2020 13:52:17 -0400")
* Carlos O'Donell:
> On 5/12/20 3:17 PM, Florian Weimer wrote:
>> * Carlos O'Donell:
>>
>>>> +/* Exactly like pthread_create if NEW_SIGMASK == NULL. Otherwise, do
>>>> + not use the current signal mask for the new thread, but set it to
>>>> + *NEW_SIGMASK instead (without unblocking internal signals). */
>
>
> Suggest:
>
> /* Exactly like pthread_create if NEW_SIGMASK is NULL.
> Create the new thread using the thread descriptor at NEWTHREAD,
> and the thread attributes from *ATTR, executing provided START_ROUTINE
> with a single void argument ARG. The last argument is not present in
> the public API for pthread_create, but is part of the internal glibc API.
> The last argument is the signal mask to be restored in the new thread,
> and is normally NULL, in which case the parent's signal mask is restored
> as mandated by the standard's requirement for pthread_create. In some cases
> though you may wish to keep certain signals blocked to avoid race cases,
> and today this includes the helper thread created by SIGEV_THREAD where all
> signals are blocked except SIGCANCEL. Thus the new_sigmask argument is
> primarily intended for the creation of helper threads not user threads. */
Does this mean you think this interface is more generally useful?
I'm still trying to make sense of this request.
Thanks,
Florian
next prev parent reply other threads:[~2020-05-14 18:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 15:02 Florian Weimer
2020-05-12 15:03 ` Florian Weimer
2020-05-12 16:09 ` H.J. Lu
2020-05-12 18:38 ` Carlos O'Donell
2020-05-12 19:02 ` Adhemerval Zanella
2020-05-14 15:46 ` Florian Weimer
2020-05-14 17:54 ` Carlos O'Donell
2020-05-12 19:09 ` Carlos O'Donell
2020-05-12 19:17 ` Florian Weimer
2020-05-14 17:52 ` Carlos O'Donell
2020-05-14 18:30 ` Florian Weimer [this message]
2020-05-14 19:33 ` Carlos O'Donell
2020-05-14 20:32 ` Adhemerval Zanella
2020-05-14 20:40 ` Carlos O'Donell
2020-05-19 11:08 ` Florian Weimer
2020-05-13 15:25 ` Carlos O'Donell
2020-05-13 16:22 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imgys72g.fsf@oldenburg2.str.redhat.com \
--to=fweimer@redhat.com \
--cc=adhemerval.zanella@linaro.org \
--cc=carlos@redhat.com \
--cc=hjl.tools@gmail.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).