mirror of https://github.com/mgba-emu/mgba.git
3DS: Enable threading interface
This commit is contained in:
parent
914a65ffc9
commit
422d34bdb0
|
@ -98,7 +98,7 @@ static inline int ThreadCreate(Thread* thread, ThreadEntry entry, void* context)
|
|||
if (!thread->stack) {
|
||||
return 1;
|
||||
}
|
||||
return svcCreateThread(&thread->handle, entry, (u32) context, &thread->stack[0x8000], 0x1F, 1);
|
||||
return svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x1F, 1);
|
||||
}
|
||||
|
||||
static inline int ThreadJoin(Thread thread) {
|
||||
|
@ -107,8 +107,9 @@ static inline int ThreadJoin(Thread thread) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void ThreadSetName(const char* name) {
|
||||
|
||||
static inline void ThreadSetName(const char* name) {
|
||||
UNUSED(name);
|
||||
// Unimplemented
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include "platform/windows/threading.h"
|
||||
#elif PSP2
|
||||
#include "platform/psp2/threading.h"
|
||||
#elif _3DS
|
||||
#include "platform/3ds/threading.h"
|
||||
#else
|
||||
#define DISABLE_THREADING
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue