lib: Update sead

This commit is contained in:
Léo Lam 2022-03-04 14:50:29 +01:00
parent f802ee16c9
commit 1518cc4960
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
5 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 5327840d10d79c9adb61e2d2575447cbaea67ea6 Subproject commit 9abef802999832e16caa2bab8e7bf5cb10c79bba

View File

@ -73,7 +73,7 @@ void WorkerSupportThreadMgr::initSleeperThreads() {
} }
void WorkerSupportThreadMgr::sleeperThreadFun(sead::Thread* thread, sead::MessageQueue::Element) { void WorkerSupportThreadMgr::sleeperThreadFun(sead::Thread* thread, sead::MessageQueue::Element) {
sead::Thread::sleep(sead::TickSpan::fromMicroSeconds(250)); sead::Thread::sleep(sead::TickSpan::makeFromMicroSeconds(250));
} }
static int getWorkerIdx(u32 id) { static int getWorkerIdx(u32 id) {

View File

@ -44,7 +44,7 @@ OverlayArena* ArchiveWork::getArena() const {
bool ArchiveWork::waitForEvent(u32 milliseconds) { bool ArchiveWork::waitForEvent(u32 milliseconds) {
if (milliseconds != 0) { if (milliseconds != 0) {
const auto duration = sead::TickSpan::fromMilliSeconds(milliseconds); const auto duration = sead::TickSpan::makeFromMilliSeconds(milliseconds);
if (!mEvent->wait(duration)) if (!mEvent->wait(duration))
return false; return false;
} else { } else {

View File

@ -205,7 +205,7 @@ ManagedTask* TaskMgr::fetchIdleTask_(bool retry_until_success) {
if (!retry_until_success) if (!retry_until_success)
return nullptr; return nullptr;
mEvent2.wait(sead::TickSpan::fromMilliSeconds(1)); mEvent2.wait(sead::TickSpan::makeFromMilliSeconds(1));
} }
} }

View File

@ -9,7 +9,7 @@
namespace ksys::util { 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) { TaskQueueBase::TaskQueueBase(sead::Heap* heap) : mQueueEmptyEvent(heap) {
mActiveTasks.initOffset(Task::getListNodeOffset()); mActiveTasks.initOffset(Task::getListNodeOffset());
@ -244,7 +244,7 @@ void TaskQueueBase::blockTasksAndReloadThreads(u8 id) {
thread.pause(); thread.pause();
} }
const auto sleep_duration = sead::TickSpan::fromMilliSeconds(1); const auto sleep_duration = sead::TickSpan::makeFromMilliSeconds(1);
while (!areAllThreadsPaused()) while (!areAllThreadsPaused())
sead::Thread::sleep(sleep_duration); sead::Thread::sleep(sleep_duration);