From f0d7f6fddb9d55b7e157ae769cf035111647167e Mon Sep 17 00:00:00 2001 From: "rpotts%netscape.com" Date: Tue, 5 Jan 1999 09:44:28 +0000 Subject: [PATCH] On windows call PL_InitializeEventsLib(...) until the new PL_event apis are available... git-svn-id: svn://10.0.0.236/trunk@17157 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/src/nsEventQueueService.cpp | 5 +++++ mozilla/xpcom/threads/nsEventQueueService.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mozilla/xpcom/src/nsEventQueueService.cpp b/mozilla/xpcom/src/nsEventQueueService.cpp index 25e803d4cc7..cb49dd065d4 100644 --- a/mozilla/xpcom/src/nsEventQueueService.cpp +++ b/mozilla/xpcom/src/nsEventQueueService.cpp @@ -110,6 +110,11 @@ nsEventQueueServiceImpl::CreateThreadEventQueue(void) } evQueue = PL_CreateEventQueue("Thread event queue...", PR_GetCurrentThread()); +#ifdef XP_PC + // XXX: For now only use the main eventQ... When the event queue is + // created via PL_CreateNativeEventQueue(...) this can go away... + PL_InitializeEventsLib(""); +#endif if (NULL == evQueue) { rv = NS_ERROR_OUT_OF_MEMORY; goto done; diff --git a/mozilla/xpcom/threads/nsEventQueueService.cpp b/mozilla/xpcom/threads/nsEventQueueService.cpp index 25e803d4cc7..cb49dd065d4 100644 --- a/mozilla/xpcom/threads/nsEventQueueService.cpp +++ b/mozilla/xpcom/threads/nsEventQueueService.cpp @@ -110,6 +110,11 @@ nsEventQueueServiceImpl::CreateThreadEventQueue(void) } evQueue = PL_CreateEventQueue("Thread event queue...", PR_GetCurrentThread()); +#ifdef XP_PC + // XXX: For now only use the main eventQ... When the event queue is + // created via PL_CreateNativeEventQueue(...) this can go away... + PL_InitializeEventsLib(""); +#endif if (NULL == evQueue) { rv = NS_ERROR_OUT_OF_MEMORY; goto done;