Fix thread entry point to use int as return and argc type.

This commit is contained in:
James Benton 2016-01-07 04:47:36 -08:00
parent 35dd3f23e1
commit 92511be884

View File

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