This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/14300] New: Add pid_t pthread_gettid_np(pthread_t *thr).


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]