summaryrefslogtreecommitdiff
path: root/src/KingSystem/Utils/Thread
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-04 14:50:29 +0100
committerLéo Lam <leo@leolam.fr>2022-03-04 21:48:06 +0100
commit1518cc49603dac28cfd514e1c4ff6099b172eedc (patch)
tree0c10f4f8909e18c9b8399ac39dba331b98c461a7 /src/KingSystem/Utils/Thread
parentf802ee16c95ae03c0114a6bb3e365099f146c54f (diff)
lib: Update sead
Diffstat (limited to 'src/KingSystem/Utils/Thread')
-rw-r--r--src/KingSystem/Utils/Thread/TaskMgr.cpp2
-rw-r--r--src/KingSystem/Utils/Thread/TaskQueueBase.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/KingSystem/Utils/Thread/TaskMgr.cpp b/src/KingSystem/Utils/Thread/TaskMgr.cpp
index b5eec563..6f6c58c3 100644
--- a/src/KingSystem/Utils/Thread/TaskMgr.cpp
+++ b/src/KingSystem/Utils/Thread/TaskMgr.cpp
@@ -205,7 +205,7 @@ ManagedTask* TaskMgr::fetchIdleTask_(bool retry_until_success) {
if (!retry_until_success)
return nullptr;
- mEvent2.wait(sead::TickSpan::fromMilliSeconds(1));
+ mEvent2.wait(sead::TickSpan::makeFromMilliSeconds(1));
}
}
diff --git a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp
index 49e91f24..0e8853c8 100644
--- a/src/KingSystem/Utils/Thread/TaskQueueBase.cpp
+++ b/src/KingSystem/Utils/Thread/TaskQueueBase.cpp
@@ -9,7 +9,7 @@
namespace ksys::util {
-static const auto cSleepSpan = sead::TickSpan::fromMicroSeconds(10);
+static const auto cSleepSpan = sead::TickSpan::makeFromMicroSeconds(10);
TaskQueueBase::TaskQueueBase(sead::Heap* heap) : mQueueEmptyEvent(heap) {
mActiveTasks.initOffset(Task::getListNodeOffset());
@@ -244,7 +244,7 @@ void TaskQueueBase::blockTasksAndReloadThreads(u8 id) {
thread.pause();
}
- const auto sleep_duration = sead::TickSpan::fromMilliSeconds(1);
+ const auto sleep_duration = sead::TickSpan::makeFromMilliSeconds(1);
while (!areAllThreadsPaused())
sead::Thread::sleep(sleep_duration);