1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

Kernel+LibC: Implement clock_gettime() and clock_nanosleep()

Only the CLOCK_MONOTONIC clock is supported at the moment, and it only
has millisecond precision. :^)
This commit is contained in:
Andreas Kling 2019-11-02 19:34:06 +01:00
parent 73b2cb9ed8
commit cc68654a44
9 changed files with 127 additions and 7 deletions

View file

@ -220,6 +220,7 @@ public:
VirtualAddress thread_specific_data() const { return m_thread_specific_data; }
u64 sleep(u32 ticks);
u64 sleep_until(u64 wakeup_time);
enum class BlockResult {
WokeNormally,