public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: Libc-alpha <libc-alpha@sourceware.org>,  hpa@zytor.com
Subject: Re: RFC: pthread pid accessor (BZ# 27880)
Date: Tue, 01 Jun 2021 19:36:53 +0200	[thread overview]
Message-ID: <875yyx32ru.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <17531998-124f-d7d1-d050-0e7aa7468293@linaro.org> (Adhemerval Zanella's message of "Tue, 1 Jun 2021 12:16:17 -0300")

* Adhemerval Zanella:

> I think we should return the TID while the thread is being executing
> either cancellation handler or c++ destructors during the unwind 
> phase. Once no more user defined callback are being executed we should
> not return the TID anymore.

>> Yes, I would prefer that.  Does Bionic return the TID from the
>> resettable TCB field, or a copy?
>
> Bionic seems to maintain a list of active threads, so it returns
> the active thread field directly.

My question was whether Bionic implements that exit behavior, or
something else.

Thanks,
Florian


  reply	other threads:[~2021-06-01 17:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 19:36 Adhemerval Zanella
2021-05-31 16:51 ` Florian Weimer
2021-06-01 14:09   ` Adhemerval Zanella
2021-06-01 14:18     ` Florian Weimer
2021-06-01 15:16       ` Adhemerval Zanella
2021-06-01 17:36         ` Florian Weimer [this message]
2021-06-01 17:51           ` Adhemerval Zanella
2021-06-01 17:54             ` Florian Weimer
2021-06-01 18:01               ` Adhemerval Zanella

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=875yyx32ru.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=hpa@zytor.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).