automaxprocs

package
v0.3.0-brc20-1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Current

func Current() int

Current returns the current value of GOMAXPROCS.

func Init

func Init() error

func Undo

func Undo() int

Undo restores GOMAXPROCS to its previous value. or revert to initial value if `automaxprocs` is not initialized.

returns the current GOMAXPROCS value.

func Value

func Value() int

Value returns the value of GOMAXPROCS set by automaxprocs. returns -1 if `automaxprocs` is not initialized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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