On Thu, 3 Jun 2010, Václav Haisman wrote:
Hi,
is it possible to obtain some sort of a thread ID that identifies a thread
within a process other than pthread_self()? Something like gettid() on
Linux? Apparently, on FreeBSD the pthread_t is a pointer type and does not
identify the thread well enough. GDB on FreeBSD seems to know about threads
and does not seem to use the same ID as is pthread_t.
"identifies a thread" well enough for what? pthread_t is suppose
to be opaque. Whether it is an int, pointer, or whatever, it is
implementation-defined and not suppose provide any more information
than available through the standard pthread interfaces. There are
some non-portable interfaces in <pthread_np.h> though.
--
DE
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"