runtimex

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package runtimex implements https://github.com/bytedance/gopkg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fastrand

func Fastrand() uint32

func Pid

func Pid() (id int)

Pid returns the id of current p.

func Pin

func Pin() int

Pin pins current p, return pid. DO NOT USE if you don't know what this is.

func ReadUnaligned16

func ReadUnaligned16(p unsafe.Pointer) uint64

func ReadUnaligned32

func ReadUnaligned32(p unsafe.Pointer) uint64

func ReadUnaligned64

func ReadUnaligned64(p unsafe.Pointer) uint64

func Unpin

func Unpin()

Unpin unpins current p.

Types

This section is empty.

Jump to

Keyboard shortcuts

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