public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr).
@ 2012-06-27 6:46 nmiell at gmail dot com
2012-06-27 13:03 ` [Bug nptl/14300] " bugdal at aerifal dot cx
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: nmiell at gmail dot com @ 2012-06-27 6:46 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14300
Bug #: 14300
Summary: Add pid_t pthread_gettid_np(pthread_t *thr).
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nptl
AssignedTo: unassigned@sourceware.org
ReportedBy: nmiell@gmail.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
fcntl(fd, F_SETOWN_EX, &((struct f_owner_ex) {F_OWNER_TID, tid})) needs some
way of getting a thread's TID, and manually calling the gettid() syscall
yourself is ugly.
There should probably be a way of converting a TID to a pthread_t, too.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
@ 2012-06-27 13:03 ` bugdal at aerifal dot cx
2013-10-03 12:23 ` neleai at seznam dot cz
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugdal at aerifal dot cx @ 2012-06-27 13:03 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14300
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2012-06-27 13:02:46 UTC ---
Converting a TID to a pthread_t is highly non-trivial; there's no direct
mapping possible. The best way I can think of is using one of the
pthread-implementation-reserved signals to signal the TID and request it to
call pthread_self and pass back the result.
Another option that would remove the need for the difficult-to-provide
interface just for the sake of having an inverse function would be to forget
pthread_gettid_np and just expose gettid (if it's not already exposed). I would
say best practices would have a thread arranging for its own receipt of signals
rather than having other threads set it up...
Anyway, shouldn't this report/request be marked as "enhancement" importance
rather than "normal" or even "minor"? It doesn't seem like a bug.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
2012-06-27 13:03 ` [Bug nptl/14300] " bugdal at aerifal dot cx
@ 2013-10-03 12:23 ` neleai at seznam dot cz
2013-10-09 19:32 ` neleai at seznam dot cz
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: neleai at seznam dot cz @ 2013-10-03 12:23 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14300
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neleai at seznam dot cz
Severity|normal |enhancement
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
2012-06-27 13:03 ` [Bug nptl/14300] " bugdal at aerifal dot cx
2013-10-03 12:23 ` neleai at seznam dot cz
@ 2013-10-09 19:32 ` neleai at seznam dot cz
2014-06-13 14:57 ` fweimer at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: neleai at seznam dot cz @ 2013-10-09 19:32 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14300
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Ondrej Bilka <neleai at seznam dot cz> ---
Duplicate
*** This bug has been marked as a duplicate of bug 6399 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
` (2 preceding siblings ...)
2013-10-09 19:32 ` neleai at seznam dot cz
@ 2014-06-13 14:57 ` fweimer at redhat dot com
2021-05-19 20:14 ` fweimer at redhat dot com
2021-05-19 20:20 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 14:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14300
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
` (3 preceding siblings ...)
2014-06-13 14:57 ` fweimer at redhat dot com
@ 2021-05-19 20:14 ` fweimer at redhat dot com
2021-05-19 20:20 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2021-05-19 20:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14300
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=27880
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug nptl/14300] Add pid_t pthread_gettid_np(pthread_t *thr).
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
` (4 preceding siblings ...)
2021-05-19 20:14 ` fweimer at redhat dot com
@ 2021-05-19 20:20 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2021-05-19 20:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14300
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-05-19 20:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 6:46 [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr) nmiell at gmail dot com
2012-06-27 13:03 ` [Bug nptl/14300] " bugdal at aerifal dot cx
2013-10-03 12:23 ` neleai at seznam dot cz
2013-10-09 19:32 ` neleai at seznam dot cz
2014-06-13 14:57 ` fweimer at redhat dot com
2021-05-19 20:14 ` fweimer at redhat dot com
2021-05-19 20:20 ` fweimer at redhat dot com
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).