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

14 строки
350 Б
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()
}