[Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr).
nmiell at gmail dot com
sourceware-bugzilla@sourceware.org
Wed Jun 27 06:46:00 GMT 2012
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.
More information about the Glibc-bugs
mailing list