goroutineid

package
v0.0.0-...-bd81c7d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package g exposes goroutine struct g to user space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func G

func G() unsafe.Pointer

G returns current g (the goroutine struct) to user space.

func GetGoID

func GetGoID() int64

func HandleWhenExit

func HandleWhenExit(f HandlerFunc)

Types

type HandlerFunc

type HandlerFunc func(goroutineId int64)

获取近似的GOID。使用该方法后,不能再hack goExit

Jump to

Keyboard shortcuts

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