How to get a thread ID?

2010-06-03 Thread Václav Haisman
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

Re: How to get a thread ID?

2010-06-03 Thread Dan Nelson
In the last episode (Jun 03), Václav Haisman said: 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

Re: How to get a thread ID?

2010-06-03 Thread Daniel Eischen
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

Re: How to get a thread ID?

2010-06-03 Thread Kostik Belousov
On Thu, Jun 03, 2010 at 09:44:52AM -0500, Dan Nelson wrote: In the last episode (Jun 03), V??clav Haisman said: 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

Re: How to get a thread ID?

2010-06-03 Thread Václav Haisman
Daniel Eischen wrote, On 3.6.2010 16:51: 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

Re: How to get a thread ID?

2010-06-03 Thread Václav Haisman
Kostik Belousov wrote, On 3.6.2010 17:19: On Thu, Jun 03, 2010 at 09:44:52AM -0500, Dan Nelson wrote: In the last episode (Jun 03), V??clav Haisman said: is it possible to obtain some sort of a thread ID that identifies a thread within a process other than pthread_self()? Something like

Re: How to get a thread ID?

2010-06-03 Thread pluknet
2010/6/3 Václav Haisman v.hais...@sh.cvut.cz: Kostik Belousov wrote, On 3.6.2010 17:19: On Thu, Jun 03, 2010 at 09:44:52AM -0500, Dan Nelson wrote: In the last episode (Jun 03), V??clav Haisman said: is it possible to obtain some sort of a thread ID that identifies a thread within a process

Re: How to get a thread ID?

2010-06-03 Thread Daniel Eischen
On Thu, 3 Jun 2010, V??clav Haisman wrote: Daniel Eischen wrote, On 3.6.2010 16:51: 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?