|
From: Limeng [??] on 29 Aug 2006 04:20 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? Xixi 2006-8-29 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jan Engelhardt on 29 Aug 2006 05:00 >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 --
|
Pages: 1 Prev: OLPC tablet input driver. Next: SDIO card support in Linux |