This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6399] New: gettid() should have a wrapper
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Apr 2008 13:04:01 -0000
- Subject: [Bug libc/6399] New: gettid() should have a wrapper
- Reply-to: sourceware-bugzilla at sourceware dot org
Currently, glibc does not provide a wrapper for gettid(). Nevertheless,
There are number of corners of the Linux syscall API where the use of Linux
thread IDs, as returned by gettid(), is essential:
a) the SIGEV_THREAD_ID notification mechanism (a Linux extension) of POSIX
timers (timer_create()).
b) sched_setaffinity()/sched_getaffinity() can be used to set the CPU affinity
of specific threads.
c) The F_SETOWN and F_GETOWN commands of fcntl() can specify a thread ID.
Given this, it seems time that gettid() should be promoted to full member status
in glibc, and have a wrapper provided.
--
Summary: gettid() should have a wrapper
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: mtk dot manpages at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6399
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.