added threadid_equal
This commit is contained in:
parent
e5cebc97f5
commit
5ed8c4b4d4
@ -74,6 +74,18 @@ tc_get_threadid(void)
|
|||||||
#endif
|
#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
|
tbus APP_CC
|
||||||
tc_mutex_create(void)
|
tc_mutex_create(void)
|
||||||
|
@ -32,6 +32,8 @@ int APP_CC
|
|||||||
tc_thread_create(THREAD_RV (THREAD_CC * start_routine)(void*), void* arg);
|
tc_thread_create(THREAD_RV (THREAD_CC * start_routine)(void*), void* arg);
|
||||||
tbus APP_CC
|
tbus APP_CC
|
||||||
tc_get_threadid(void);
|
tc_get_threadid(void);
|
||||||
|
int APP_CC
|
||||||
|
tc_threadid_equal(tbus tid1, tbus tid2);
|
||||||
tbus APP_CC
|
tbus APP_CC
|
||||||
tc_mutex_create(void);
|
tc_mutex_create(void);
|
||||||
void APP_CC
|
void APP_CC
|
||||||
|
Loading…
Reference in New Issue
Block a user