mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
[WaitSyncN] r1 should be -1 on timeout
This commit is contained in:
parent
da270de155
commit
5e0c4b76ac
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ void Kernel::waitSynchronizationN() {
|
||||||
}
|
}
|
||||||
|
|
||||||
regs[0] = SVCResult::Success; // If the thread times out, this should be adjusted to SVCResult::Timeout
|
regs[0] = SVCResult::Success; // If the thread times out, this should be adjusted to SVCResult::Timeout
|
||||||
regs[1] = handleCount - 1; // When the thread exits, this will be adjusted to mirror which handle woke us up
|
// If the thread wakes up without timeout, this will be adjusted to the index of the handle that woke us up
|
||||||
|
regs[1] = 0xFFFFFFFF;
|
||||||
t.waitList.resize(handleCount);
|
t.waitList.resize(handleCount);
|
||||||
t.status = ThreadStatus::WaitSyncAny;
|
t.status = ThreadStatus::WaitSyncAny;
|
||||||
t.outPointer = outPointer;
|
t.outPointer = outPointer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue