1

I need to get PID of specific QThread in linux. getpid returns pid of parent process. getCurrentThreadId returns Qt inner code. Is there any other way?

ephemerr
  • 1,833
  • 19
  • 22

1 Answers1

1

Found the answer there: https://stackoverflow.com/a/21280941/2656799

It is in use of syscall(SYS_gettid)

ephemerr
  • 1,833
  • 19
  • 22