[kernel] Change thread_sleep arg from time to duration

It seems more common to want to sleep for a duration than to sleep to a
specific time. Change the implementation to not make the process look up
the current time first. (Plus, there's no current syscall to do so)
This commit is contained in:
Justin C. Miller
2022-02-28 18:43:20 -08:00
parent 982442eb00
commit 9120318594
2 changed files with 6 additions and 3 deletions

View File

@@ -18,6 +18,6 @@ object thread : object {
}
method sleep [static] {
param until uint64
param duration uint64
}
}