hosttid

package
v0.0.0-...-6cf66fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 2

Documentation

Overview

Package hosttid provides the Current function.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL