[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0608291046440.6963@yvahk01.tjqt.qr>
Date: Tue, 29 Aug 2006 10:48:39 +0200 (MEST)
From: Jan Engelhardt <jengelh@...ux01.gwdg.de>
To: Limeng [李萌] <avlimeng@...gsoft.net>
cc: linux-kernel@...r.kernel.org
Subject: Re: help
>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
--
Powered by blists - more mailing lists