mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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...
This commit is contained in:
parent
c3592ae57d
commit
2e0ca1df56
@ -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…
Reference in New Issue
Block a user