mirror of https://github.com/zeldaret/botw.git
lib: Update sead
This commit is contained in:
parent
f802ee16c9
commit
1518cc4960
2
lib/sead
2
lib/sead
|
@ -1 +1 @@
|
||||||
Subproject commit 5327840d10d79c9adb61e2d2575447cbaea67ea6
|
Subproject commit 9abef802999832e16caa2bab8e7bf5cb10c79bba
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue