3DS: Enable threading interface

This commit is contained in:
Jeffrey Pfau 2015-09-04 00:56:55 -07:00
parent 914a65ffc9
commit 422d34bdb0
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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