mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-07 23:30:39 +01:00
Fix thread entry point to use int as return and argc type.
This commit is contained in:
parent
35dd3f23e1
commit
92511be884
@ -17,7 +17,7 @@ typedef uint8_t OSThreadState;
|
|||||||
typedef uint32_t OSThreadRequest;
|
typedef uint32_t OSThreadRequest;
|
||||||
typedef uint8_t OSThreadAttributes;
|
typedef uint8_t OSThreadAttributes;
|
||||||
|
|
||||||
typedef int32_t (*OSThreadEntryPointFn)(int32_t argc, char *arv);
|
typedef int (*OSThreadEntryPointFn)(int argc, const char **argv);
|
||||||
typedef void (*OSThreadCleanupCallbackFn)(OSThread *thread, void *stack);
|
typedef void (*OSThreadCleanupCallbackFn)(OSThread *thread, void *stack);
|
||||||
typedef void (*OSThreadDeallocatorFn)(OSThread *thread, void *stack);
|
typedef void (*OSThreadDeallocatorFn)(OSThread *thread, void *stack);
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ OSIsThreadTerminated(OSThread *thread);
|
|||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
OSJoinThread(OSThread *thread,
|
OSJoinThread(OSThread *thread,
|
||||||
int32_t *threadResult);
|
int *threadResult);
|
||||||
|
|
||||||
void
|
void
|
||||||
OSPrintCurrentThreadState();
|
OSPrintCurrentThreadState();
|
||||||
@ -265,8 +265,8 @@ OSResumeThread(OSThread *thread);
|
|||||||
BOOL
|
BOOL
|
||||||
OSRunThread(OSThread *thread,
|
OSRunThread(OSThread *thread,
|
||||||
OSThreadEntryPointFn entry,
|
OSThreadEntryPointFn entry,
|
||||||
int32_t argc,
|
int argc,
|
||||||
char *argv);
|
const char **argv);
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
OSSetThreadAffinity(OSThread *thread,
|
OSSetThreadAffinity(OSThread *thread,
|
||||||
|
Loading…
Reference in New Issue
Block a user