ThreadID returns t's thread ID in its own PID namespace. If the task is dead, ThreadID returns 0.
()
| 631 | // ThreadID returns t's thread ID in its own PID namespace. If the task is |
| 632 | // dead, ThreadID returns 0. |
| 633 | func (t *Task) ThreadID() ThreadID { |
| 634 | return t.tg.pidns.IDOfTask(t) |
| 635 | } |
| 636 | |
| 637 | // TGIDInRoot returns t's TGID in the root PID namespace. |
| 638 | func (t *Task) TGIDInRoot() ThreadID { |
no test coverage detected