runtime

package
Version: v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CLOCK_MONOTONIC_RAW = 4
View Source
const Compiler = "tinygo"
View Source
const GOARCH = "amd64"
View Source
const GOOS = "linux"
View Source
const TargetBits = 64

The bitness of the CPU (e.g. 8, 32, 64).

Variables

This section is empty.

Functions

func AdjustTimeOffset

func AdjustTimeOffset(offset int64)

AdjustTimeOffset adds the given offset to the built-in time offset. A positive value adds to the time (skipping some time), a negative value moves the clock into the past.

func Caller

func Caller(skip int) (pc uintptr, file string, line int, ok bool)

func Callers

func Callers(skip int, pc []uintptr) int

func GOMAXPROCS

func GOMAXPROCS(n int) int

func GOROOT

func GOROOT() string

func Goexit

func Goexit()

Goexit terminates the currently running goroutine. No other goroutines are affected.

Unlike the main Go implementation, no deffered calls will be run.

func Gosched

func Gosched()

func Stack

func Stack(buf []byte, all bool) int

Types

type Cond

type Cond struct {
	// contains filtered or unexported fields
}

Cond is a simplified condition variable, useful for notifying goroutines of interrupts.

func (*Cond) Notify

func (c *Cond) Notify() bool

Notify sends a notification. If the condition variable already has a pending notification, this returns false.

func (*Cond) Poll

func (c *Cond) Poll() bool

Poll checks for a notification. If a notification is found, it is cleared and this returns true.

func (*Cond) Wait

func (c *Cond) Wait()

Wait for a notification. If the condition variable was previously notified, this returns immediately.

type Error

type Error interface {
	error

	RuntimeError()
}

The Error interface identifies a run time error.

type Frame

type Frame struct {
	Function string

	File string
	Line int
}

type Frames

type Frames struct {
}

func CallersFrames

func CallersFrames(callers []uintptr) *Frames

func (*Frames) Next

func (ci *Frames) Next() (frame Frame, more bool)

type Func

type Func struct {
}

func FuncForPC

func FuncForPC(pc uintptr) *Func

func (*Func) Name

func (f *Func) Name() string

Directories

Path Synopsis
Package debug is a dummy package that is not yet implemented.
Package debug is a dummy package that is not yet implemented.
Package interrupt provides access to hardware interrupts.
Package interrupt provides access to hardware interrupts.
Package volatile provides definitions for volatile loads and stores.
Package volatile provides definitions for volatile loads and stores.
internal
sys

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to