package hosttid
import "gvisor.dev/gvisor/pkg/hosttid"
Package hosttid provides the Current function.
Index ¶
Functions ¶
func Current ¶
func Current() uint64
Current returns the caller's host thread ID. Unless runtime.LockOSThread() is in effect, this function is inherently racy since the Go runtime may migrate the calling goroutine to another thread at any time.
Current is equivalent to unix.Gettid(), but faster.
Source Files ¶
hosttid.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 4 hours ago –
Tools for package owners.