all repos — mgba @ 422d34bdb09074181b4df245d1655d40855f4b7a

mGBA Game Boy Advance Emulator

3DS: Enable threading interface
Jeffrey Pfau jeffrey@endrift.com
Fri, 04 Sep 2015 00:56:55 -0700
commit

422d34bdb09074181b4df245d1655d40855f4b7a

parent

914a65ffc995fc4c6a059f0e45697b3f602caf5b

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

jump to
M src/platform/3ds/threading.hsrc/platform/3ds/threading.h

@@ -98,7 +98,7 @@ thread->stack = memalign(8, 0x8000);

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 @@ free(thread.stack);

return 0; } -static void ThreadSetName(const char* name) { - +static inline void ThreadSetName(const char* name) { + UNUSED(name); + // Unimplemented } #endif
M src/util/threading.hsrc/util/threading.h

@@ -15,6 +15,8 @@ #elif _WIN32

#include "platform/windows/threading.h" #elif PSP2 #include "platform/psp2/threading.h" +#elif _3DS +#include "platform/3ds/threading.h" #else #define DISABLE_THREADING #endif