diff options
Diffstat (limited to 'common/thread_calls.c')
-rw-r--r-- | common/thread_calls.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/common/thread_calls.c b/common/thread_calls.c index addad6fd..4ce25897 100644 --- a/common/thread_calls.c +++ b/common/thread_calls.c @@ -40,7 +40,7 @@ /*****************************************************************************/ /* returns error */ #if defined(_WIN32) -int APP_CC +int tc_thread_create(unsigned long (__stdcall *start_routine)(void *), void *arg) { int rv = 0; @@ -54,7 +54,7 @@ tc_thread_create(unsigned long (__stdcall *start_routine)(void *), void *arg) return rv; } #else -int APP_CC +int tc_thread_create(void * (* start_routine)(void *), void *arg) { int rv = 0; @@ -75,7 +75,7 @@ tc_thread_create(void * (* start_routine)(void *), void *arg) #endif /*****************************************************************************/ -tbus APP_CC +tbus tc_get_threadid(void) { #if defined(_WIN32) @@ -87,7 +87,7 @@ tc_get_threadid(void) /*****************************************************************************/ /* returns boolean */ -int APP_CC +int tc_threadid_equal(tbus tid1, tbus tid2) { #if defined(_WIN32) @@ -98,7 +98,7 @@ tc_threadid_equal(tbus tid1, tbus tid2) } /*****************************************************************************/ -tbus APP_CC +tbus tc_mutex_create(void) { #if defined(_WIN32) @@ -113,7 +113,7 @@ tc_mutex_create(void) } /*****************************************************************************/ -void APP_CC +void tc_mutex_delete(tbus mutex) { #if defined(_WIN32) @@ -128,7 +128,7 @@ tc_mutex_delete(tbus mutex) } /*****************************************************************************/ -int APP_CC +int tc_mutex_lock(tbus mutex) { #if defined(_WIN32) @@ -141,7 +141,7 @@ tc_mutex_lock(tbus mutex) } /*****************************************************************************/ -int APP_CC +int tc_mutex_unlock(tbus mutex) { int rv = 0; @@ -159,7 +159,7 @@ tc_mutex_unlock(tbus mutex) } /*****************************************************************************/ -tbus APP_CC +tbus tc_sem_create(int init_count) { #if defined(_WIN32) @@ -180,7 +180,7 @@ tc_sem_create(int init_count) } /*****************************************************************************/ -void APP_CC +void tc_sem_delete(tbus sem) { #if defined(_WIN32) @@ -197,7 +197,7 @@ tc_sem_delete(tbus sem) } /*****************************************************************************/ -int APP_CC +int tc_sem_dec(tbus sem) { #if defined(_WIN32) @@ -213,7 +213,7 @@ tc_sem_dec(tbus sem) } /*****************************************************************************/ -int APP_CC +int tc_sem_inc(tbus sem) { #if defined(_WIN32) |