MCPcopy Index your code
hub / github.com/google/gvisor / ThreadID

Method ThreadID

pkg/sentry/kernel/threads.go:633–635  ·  view source on GitHub ↗

ThreadID returns t's thread ID in its own PID namespace. If the task is dead, ThreadID returns 0.

()

Source from the content-addressed store, hash-verified

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

Callers 13

wakeRobustListOneMethod · 0.95
GettidFunction · 0.80
SetTidAddressFunction · 0.80
futexLockPIFunction · 0.80
tryLockPIFunction · 0.80
FutexFunction · 0.80
CapsetFunction · 0.80
GetFilesystemMethod · 0.80
pidFromContextFunction · 0.80
ConfigureMMapMethod · 0.80
StartMethod · 0.80

Calls 1

IDOfTaskMethod · 0.80

Tested by

no test coverage detected