mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 13:06:24 +02:00
Io: Update async priority more correctly.
When an operation finishes, whether it uses the priority from the first operation or the current thread's priority depends on sdk version, it seems. This also makes it resolve the default priority on open, so that changing the default afterward doesn't affect already open descriptors.
This commit is contained in:
1 parent
0a5ec48382
commit
593e48b865
4 files changed
+42
-18
No files matched your search
@@ -16,9 +16,11 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "Common/ChunkFile.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/MemMapHelpers.h"
|
||||
#include "Core/HLE/HLE.h"
|
||||
#include "Core/HLE/HLEHelperThread.h"
|
||||
#include "Core/HLE/KernelWaitHelpers.h"
|
||||
#include "Core/HLE/sceKernelThread.h"
|
||||
#include "Core/HLE/sceKernelMemory.h"
|
||||
#include "Core/MIPS/MIPSCodeUtils.h"
|
||||
@@ -91,6 +93,13 @@ void HLEHelperThread::ChangePriority(u32 prio) {
|
||||
KernelChangeThreadPriority(id_, prio);
|
||||
}
|
||||
|
||||
void HLEHelperThread::Resume(WaitType waitType, SceUID uid, int result) {
|
||||
bool res = HLEKernel::ResumeFromWait(id_, waitType, uid, result);
|
||||
if (!res) {
|
||||
ERROR_LOG(HLE, "Failed to wake helper thread from wait");
|
||||
}
|
||||
}
|
||||
|
||||
void HLEHelperThread::Forget() {
|
||||
id_ = 0;
|
||||
entry_ = 0;
|
||||
|
||||
Reference in new issue
Block a user