all repos — mgba @ 051198395dc108415035ac37f779e9f063b6d2eb

mGBA Game Boy Advance Emulator

PSP2: Delete threads after they return
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Aug 2016 23:35:38 -0700
commit

051198395dc108415035ac37f779e9f063b6d2eb

parent

b28030c98ced576def581f2f3ead551fc890890b

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -21,6 +21,7 @@ - Debugger: Fix GDB breakpoints

- Wii: Fix framelimiting after a slowdown - PSP2: Fix gyroscope direction - Qt: Fix hanging key press after disabling autofire + - PSP2: Delete threads after they return Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure
M src/platform/psp2/threading.hsrc/platform/psp2/threading.h

@@ -132,7 +132,11 @@ return 0;

} static inline int ThreadJoin(Thread thread) { - return sceKernelWaitThreadEnd(thread, 0, 0); + int res = sceKernelWaitThreadEnd(thread, 0, 0); + if (res < 0) { + return res; + } + return sceKernelDeleteThread(thread); } static inline int ThreadSetName(const char* name) {