remove duplicated getMsgQueueForThisThread

This commit is contained in:
Vincent Wei
2020-03-11 19:28:41 +08:00
parent 666aeea115
commit ec641f0207
-14
View File
@@ -782,20 +782,6 @@ extern pthread_key_t __mg_threadinfo_key;
#define TEST_CANCEL pthread_testcancel()
int __mg_join_all_message_threads (void);
static inline MSGQUEUE* getMsgQueueForThisThread (void)
{
MSGQUEUE* pMsgQueue;
pMsgQueue = (MSGQUEUE*)pthread_getspecific (__mg_threadinfo_key);
#ifdef __VXWORKS__
if (pMsgQueue == (void *)-1) {
pMsgQueue = NULL;
}
#endif
return pMsgQueue;
}
static inline BOOL createThreadInfoKey (void)
{
if (pthread_key_create (&__mg_threadinfo_key, NULL))