summaryrefslogtreecommitdiff
path: root/Kernel/Tasks
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-02-27 23:56:16 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-02 08:36:08 +0100
commit2b6546c40a7ea7738a3bda81f57e396ab3a305ea (patch)
tree06416116c6faf30423fb074fa862a34e46139e6a /Kernel/Tasks
parent65b36e42b8dc92a2be7324b38a19956da110b7f1 (diff)
downloadserenity-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.cpp2
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));
}
});
}