diff options
author | Ayke van Laethem <[email protected]> | 2018-09-22 01:40:04 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-09-22 01:40:04 +0200 |
commit | 7517ac86e4def56084695e172ca8be6b65ad2488 (patch) | |
tree | 9ecee217a465b0c0a5fdcaf82e9c3f567a3a9bdc /src/runtime/runtime_unix.go | |
parent | 7c16f6c90468fcbb3133cf13e785be61cba8f8e7 (diff) | |
download | tinygo-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.go | 7 |
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. |