On windows only, ignore the eventQ kept by the eventQ service... Until the event Q is created with PL_CreateNativeEventQueue(...) only the main event Q can be used...

git-svn-id: svn://10.0.0.236/trunk@17142 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com 1999-01-05 05:43:53 +00:00
parent 750b88f0de
commit bfb6a305f7
2 changed files with 8 additions and 2 deletions

View File

@ -166,8 +166,11 @@ nsEventQueueServiceImpl::GetThreadEventQueue(PRThread* aThread, PLEventQueue** a
evQueue = (PLEventQueue*)mEventQTable->Get(&key);
if (NULL != evQueue) {
*aResult = evQueue;
// XXX: For now only use the main eventQ...
#ifdef XP_PC
// XXX: For now only use the main eventQ... When the event queue is
// created via PL_CreateNativeEventQueue(...) this can go away...
*aResult = PL_GetMainEventQueue();
#endif
} else {
// XXX: Need error code for requesting an event queue when none exists...
rv = NS_ERROR_FAILURE;

View File

@ -166,8 +166,11 @@ nsEventQueueServiceImpl::GetThreadEventQueue(PRThread* aThread, PLEventQueue** a
evQueue = (PLEventQueue*)mEventQTable->Get(&key);
if (NULL != evQueue) {
*aResult = evQueue;
// XXX: For now only use the main eventQ...
#ifdef XP_PC
// XXX: For now only use the main eventQ... When the event queue is
// created via PL_CreateNativeEventQueue(...) this can go away...
*aResult = PL_GetMainEventQueue();
#endif
} else {
// XXX: Need error code for requesting an event queue when none exists...
rv = NS_ERROR_FAILURE;