Files
tinygo/src/runtime/scheduler_none.go
T
2020-03-17 12:16:10 +01:00

15 lines
350 B
Go

// +build scheduler.none
package runtime
//go:linkname sleep time.Sleep
func sleep(duration int64) {
sleepTicks(timeUnit(duration / tickMicros))
}
// getSystemStackPointer returns the current stack pointer of the system stack.
// This is always the current stack pointer.
func getSystemStackPointer() uintptr {
return getCurrentStackPointer()
}