diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-02-27 23:56:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-02 08:36:08 +0100 |
commit | 2b6546c40a7ea7738a3bda81f57e396ab3a305ea (patch) | |
tree | 06416116c6faf30423fb074fa862a34e46139e6a /Kernel/Tasks | |
parent | 65b36e42b8dc92a2be7324b38a19956da110b7f1 (diff) | |
download | serenity-2b6546c40a7ea7738a3bda81f57e396ab3a305ea.zip |
Kernel: Make Thread use AK::Time internally
This commit is very invasive, because Thread likes to take a pointer and write
to it. This means that translating between timespec/timeval/Time would have been
more difficult than just changing everything that hands a raw pointer to Thread,
in bulk.
Diffstat (limited to 'Kernel/Tasks')
-rw-r--r-- | Kernel/Tasks/SyncTask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Tasks/SyncTask.cpp b/Kernel/Tasks/SyncTask.cpp index 940790b103..78e0002aa4 100644 --- a/Kernel/Tasks/SyncTask.cpp +++ b/Kernel/Tasks/SyncTask.cpp @@ -38,7 +38,7 @@ void SyncTask::spawn() dbgln("SyncTask is running"); for (;;) { VFS::the().sync(); - (void)Thread::current()->sleep({ 1, 0 }); + (void)Thread::current()->sleep(Time::from_seconds(1)); } }); } |