Date: Thu, 03 Jun 2010 10:06:11 +0200 From: =?UTF-8?Q?V=C3=A1clav_Haisman?= <v.haisman@sh.cvut.cz> To: <freebsd-hackers@freebsd.org> Subject: How to get a thread ID? Message-ID: <6e716c850fa84621482b71826dae55d5@shell.sh.cvut.cz>
next in thread | raw e-mail | index | archive | help
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. -- VH
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6e716c850fa84621482b71826dae55d5>