Re: help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Hi,
>    How can I get one thread’s  LWP id on linux? 
>    The thread is not the main thread, so that getpid() does not work. 
>And the LWP id is not the same as the result by pthread_self().
>
>    Any suggestion?

gettid(), I assume.



Jan Engelhardt
-- 

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux