diff options
Diffstat (limited to 'common/thread_calls.c')
-rw-r--r-- | common/thread_calls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/thread_calls.c b/common/thread_calls.c index c28febdf..6e40faae 100644 --- a/common/thread_calls.c +++ b/common/thread_calls.c @@ -75,6 +75,18 @@ tc_get_threadid(void) } /*****************************************************************************/ +/* returns boolean */ +int APP_CC +tc_threadid_equal(tbus tid1, tbus tid2) +{ +#if defined(_WIN32) + return tid1 == tid2; +#else + return pthread_equal((pthread_t)tid1, (pthread_t)tid2); +#endif +} + +/*****************************************************************************/ tbus APP_CC tc_mutex_create(void) { |