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:
parent
750b88f0de
commit
bfb6a305f7
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user