diff options
Diffstat (limited to 'src/Platform/Posix/Thread.c')
| -rw-r--r-- | src/Platform/Posix/Thread.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Platform/Posix/Thread.c b/src/Platform/Posix/Thread.c index 21a0b14..2c249d8 100644 --- a/src/Platform/Posix/Thread.c +++ b/src/Platform/Posix/Thread.c @@ -11,7 +11,7 @@ struct BH_ThreadContext }; -static void *BH_ThreadRun(void *context) +static void *threadRun(void *context) { BH_ThreadCallback callback; void *data; @@ -27,10 +27,10 @@ static void *BH_ThreadRun(void *context) } -static int BH_ThreadInit(BH_Thread *thread, - size_t stack, - BH_ThreadCallback callback, - void *data) +static int threadInit(BH_Thread *thread, + size_t stack, + BH_ThreadCallback callback, + void *data) { struct BH_ThreadContext *context; pthread_attr_t attributes; @@ -46,13 +46,13 @@ static int BH_ThreadInit(BH_Thread *thread, pthread_attr_init(&attributes); if (!stack) - result = pthread_create(&thread->handle, NULL, BH_ThreadRun, context); + result = pthread_create(&thread->handle, NULL, threadRun, context); else { if (stack < PTHREAD_STACK_MIN) stack = PTHREAD_STACK_MIN; pthread_attr_setstacksize(&attributes, stack); - result = pthread_create(&thread->handle, &attributes, BH_ThreadRun, context); + result = pthread_create(&thread->handle, &attributes, threadRun, context); } pthread_attr_destroy(&attributes); @@ -67,7 +67,7 @@ BH_Thread *BH_ThreadNew(size_t stack, BH_Thread *thread; thread = malloc(sizeof(BH_Thread)); - if (thread && BH_ThreadInit(thread, stack, callback, data)) + if (thread && threadInit(thread, stack, callback, data)) { free(thread); return NULL; |
