added threadid_equal

ulab-original
jsorg71 17 years ago
parent e5cebc97f5
commit 5ed8c4b4d4

@ -74,6 +74,18 @@ tc_get_threadid(void)
#endif
}
/*****************************************************************************/
/* 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)

@ -32,6 +32,8 @@ int APP_CC
tc_thread_create(THREAD_RV (THREAD_CC * start_routine)(void*), void* arg);
tbus APP_CC
tc_get_threadid(void);
int APP_CC
tc_threadid_equal(tbus tid1, tbus tid2);
tbus APP_CC
tc_mutex_create(void);
void APP_CC

Loading…
Cancel
Save