3DS: Enable threading interface
Jeffrey Pfau jeffrey@endrift.com
Fri, 04 Sep 2015 00:56:55 -0700
2 files changed,
6 insertions(+),
3 deletions(-)
M
src/platform/3ds/threading.h
→
src/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.h
→
src/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