mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 11:07:54 +08:00
remove duplicated getMsgQueueForThisThread
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user