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:
|
Other fixes:
|
||||||
- 3DS: Redo video sync to be more precise
|
- 3DS: Redo video sync to be more precise
|
||||||
- 3DS: Fix crash with libctru 2.0 when exiting
|
- 3DS: Fix crash with libctru 2.0 when exiting
|
||||||
|
- 3DS: Fix thread cleanup
|
||||||
- All: Improve export headers (fixes mgba.io/i/1738)
|
- All: Improve export headers (fixes mgba.io/i/1738)
|
||||||
- Core: Ensure ELF regions can be written before trying
|
- Core: Ensure ELF regions can be written before trying
|
||||||
- Core: Fix reported ROM size when a fixed buffer size is used
|
- 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) {
|
if (!entry || !thread) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
*thread = threadCreate(entry, context, 0x8000, 0x18, 2, true);
|
*thread = threadCreate(entry, context, 0x8000, 0x18, 2, false);
|
||||||
return !*thread;
|
return !*thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int ThreadJoin(Thread* 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) {
|
static inline void ThreadSetName(const char* name) {
|
||||||
|
|
|
@ -206,10 +206,6 @@ static THREAD_ENTRY _proxyThread(void* logger) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MutexUnlock(&proxyRenderer->mutex);
|
MutexUnlock(&proxyRenderer->mutex);
|
||||||
|
|
||||||
#ifdef _3DS
|
|
||||||
svcExitThread();
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue