This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr).
- From: "nmiell at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 27 Jun 2012 06:46:07 +0000
- Subject: [Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr).
- Auto-submitted: auto-generated
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.