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:
rpotts%netscape.com 1999-01-05 05:43:53 +00:00
Родитель c3592ae57d
Коммит 2e0ca1df56
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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;