mirror of https://github.com/mgba-emu/mgba.git
3DS: Fix thread cleanup
This commit is contained in:
parent
98f2d14b81
commit
07c2c87d00
1
CHANGES
1
CHANGES
|
@ -44,6 +44,7 @@ Emulation fixes:
|
|||
Other fixes:
|
||||
- 3DS: Redo video sync to be more precise
|
||||
- 3DS: Fix crash with libctru 2.0 when exiting
|
||||
- 3DS: Fix thread cleanup
|
||||
- All: Improve export headers (fixes mgba.io/i/1738)
|
||||
- Core: Ensure ELF regions can be written before trying
|
||||
- Core: Fix reported ROM size when a fixed buffer size is used
|
||||
|
|
|
@ -69,12 +69,14 @@ static inline int ThreadCreate(Thread* thread, ThreadEntry entry, void* context)
|
|||
if (!entry || !thread) {
|
||||
return 1;
|
||||
}
|
||||
*thread = threadCreate(entry, context, 0x8000, 0x18, 2, true);
|
||||
*thread = threadCreate(entry, context, 0x8000, 0x18, 2, false);
|
||||
return !*thread;
|
||||
}
|
||||
|
||||
static inline int ThreadJoin(Thread* thread) {
|
||||
return threadJoin(*thread, U64_MAX);
|
||||
Result res = threadJoin(*thread, U64_MAX);
|
||||
threadFree(*thread);
|
||||
return res;
|
||||
}
|
||||
|
||||
static inline void ThreadSetName(const char* name) {
|
||||
|
|
|
@ -206,10 +206,6 @@ static THREAD_ENTRY _proxyThread(void* logger) {
|
|||
}
|
||||
}
|
||||
MutexUnlock(&proxyRenderer->mutex);
|
||||
|
||||
#ifdef _3DS
|
||||
svcExitThread();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue