currentthread

package
v0.52.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package currentthread gives you access to the underlying C thread id.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v0.40.1

func Equal(t1, t2 ThreadID) bool

Equal compares two thread identifiers.

Types

type ThreadID added in v0.40.1

type ThreadID C.thrd_t

ThreadID correspond to an opaque thread identifier

func ID

func ID() ThreadID

ID returns the id of the current thread

Jump to

Keyboard shortcuts

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