aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_unix.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-09-22 01:40:04 +0200
committerAyke van Laethem <[email protected]>2018-09-22 01:40:04 +0200
commit7517ac86e4def56084695e172ca8be6b65ad2488 (patch)
tree9ecee217a465b0c0a5fdcaf82e9c3f567a3a9bdc /src/runtime/runtime_unix.go
parent7c16f6c90468fcbb3133cf13e785be61cba8f8e7 (diff)
downloadtinygo-7517ac86e4def56084695e172ca8be6b65ad2488.tar.gz
tinygo-7517ac86e4def56084695e172ca8be6b65ad2488.zip
runtime: merge common sleep() functions
Diffstat (limited to 'src/runtime/runtime_unix.go')
-rw-r--r--src/runtime/runtime_unix.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/runtime/runtime_unix.go b/src/runtime/runtime_unix.go
index 64c0ba3cc..396d731eb 100644
--- a/src/runtime/runtime_unix.go
+++ b/src/runtime/runtime_unix.go
@@ -34,13 +34,8 @@ func putchar(c byte) {
_Cfunc_putchar(int(c))
}
-//go:linkname sleep time.Sleep
-func sleep(d int64) {
- _Cfunc_usleep(uint(d) / 1000)
-}
-
func sleepTicks(d timeUnit) {
- sleep(int64(d))
+ _Cfunc_usleep(uint(d) / 1000)
}
// Return monotonic time in nanoseconds.