I think you can avoid this by using the primitive:

lwpid_t tid;
syscall (SYS_thr_self, &tid);

There is a mess in kernel interfaces,
the right one is

long  tid;
syscall (SYS_thr_self, &tid);

But it holds only for current pthread implementation,
it can be changed anytime.

Petr


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1310060959060.28...@contest.felk.cvut.cz

Reply via email to