>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 --
- References:
- help
- From: Limeng [李萌] <[email protected]>
- help
- Prev by Date: [OT] thread identification (was: help)
- Next by Date: Was: boot failure, "DWARF2 unwinder stuck at 0xc0100199"
- Previous by thread: [OT] thread identification (was: help)
- Next by thread: Problem with md: Not rebuilding rai5
- Index(es):