Documentation
¶
Index ¶
- Constants
- func Caller(skip int) (pc uintptr, file string, line int, ok bool)
- func Callers(skip int, pc []uintptr) int
- func GOMAXPROCS(n int) int
- func GOROOT() string
- func Goexit()
- func Gosched()
- func LockOSThread()
- func NumCPU() int
- func NumCgoCall() int
- func NumGoroutine() int
- func Stack(buf []byte, all bool) int
- func UnlockOSThread()
- func Version() string
- type Cond
- type Error
- type Frame
- type Frames
- type Func
Constants ¶
const Compiler = "tinygo"
const GOARCH = "amd64"
const GOOS = "linux"
const TargetBits = 64
The bitness of the CPU (e.g. 8, 32, 64).
Variables ¶
This section is empty.
Functions ¶
func GOMAXPROCS ¶
func Goexit ¶ added in v0.9.0
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 LockOSThread ¶ added in v0.23.0
func LockOSThread()
LockOSThread wires the calling goroutine to its current operating system thread. Stub for now Called by go1.18 standard library on windows, see https://github.com/golang/go/issues/49320
func NumCPU ¶ added in v0.23.0
func NumCPU() int
NumCPU returns the number of logical CPUs usable by the current process.
The set of available CPUs is checked by querying the operating system at process startup. Changes to operating system CPU allocation after process startup are not reflected.
func NumCgoCall ¶ added in v0.23.0
func NumCgoCall() int
Stub for NumCgoCall, does not return the real value
func NumGoroutine ¶ added in v0.23.0
func NumGoroutine() int
Stub for NumGoroutine, does not return the real value
func UnlockOSThread ¶ added in v0.23.0
func UnlockOSThread()
UnlockOSThread undoes an earlier call to LockOSThread. Stub for now
Types ¶
type Cond ¶ added in v0.17.0
type Cond struct {
// contains filtered or unexported fields
}
Cond is a simplified condition variable, useful for notifying goroutines of interrupts.
func (*Cond) Notify ¶ added in v0.17.0
Notify sends a notification. If the condition variable already has a pending notification, this returns false.
type Error ¶ added in v0.14.0
type Error interface { error RuntimeError() }
The Error interface identifies a run time error.
Source Files
¶
- algorithm.go
- arch_amd64.go
- chan.go
- complex.go
- cond.go
- debug.go
- defer.go
- env_linux.go
- error.go
- extern.go
- float.go
- func.go
- hashmap.go
- hosted.go
- interface.go
- memhash_fnv.go
- os_linux.go
- panic.go
- poll.go
- print.go
- runtime.go
- runtime_unix.go
- scheduler.go
- scheduler_any.go
- slice.go
- stack.go
- string.go
- symtab.go
- sync.go
- wait_other.go
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. |
internal
|
|
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. |