- Timestamp:
- Jun 19, 2013 11:54:43 AM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/NativeEventQueue.cpp
r46649 r46651 81 81 struct MyPLEvent : public PLEvent 82 82 { 83 MyPLEvent( Event *e) : event(e) {}84 Event *event;83 MyPLEvent(NativeEvent *e) : event(e) {} 84 NativeEvent *event; 85 85 }; 86 86 … … 88 88 void *PR_CALLBACK com::NativeEventQueue::plEventHandler(PLEvent *self) 89 89 { 90 Event *ev = ((MyPLEvent *)self)->event;90 NativeEvent *ev = ((MyPLEvent *)self)->event; 91 91 if (ev) 92 92 ev->handler(); … … 103 103 void PR_CALLBACK com::NativeEventQueue::plEventDestructor(PLEvent *self) 104 104 { 105 Event *ev = ((MyPLEvent *)self)->event;105 NativeEvent *ev = ((MyPLEvent *)self)->event; 106 106 if (ev) 107 107 delete ev; … … 222 222 /* Check that it actually is the main event queue, i.e. that 223 223 we're called on the right thread. */ 224 nsCOMPtr<nsI NativeEventQueue> q;224 nsCOMPtr<nsIEventQueue> q; 225 225 nsresult rv = NS_GetMainEventQ(getter_AddRefs(q)); 226 226 Assert(NS_SUCCEEDED(rv)); … … 646 646 { 647 647 #ifdef VBOX_WITH_XPCOM 648 return mEventQ->Get NativeEventQueueSelectFD();648 return mEventQ->GetEventQueueSelectFD(); 649 649 #else 650 650 return -1; -
trunk/src/VBox/Main/glue/initterm.cpp
r46649 r46651 556 556 if (--gXPCOMInitCount == 0) 557 557 { 558 MainEventQueue::uninit();558 NativeEventQueue::uninit(); 559 559 rc = NS_ShutdownXPCOM(nsnull); 560 560 -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r46649 r46651 5380 5380 * See @bugref{5724}. 5381 5381 */ 5382 while (pEventQueue->processEventQueue(RT_INDEFINITE_WAIT) != VERR_INTERRUPTED) 5383 /* nothing */ ; 5382 for (;;) 5383 { 5384 rc = pEventQueue->processEventQueue(RT_INDEFINITE_WAIT); 5385 if (rc == VERR_INTERRUPTED) 5386 { 5387 LogFlow(("Event queue processing ended with rc=%Rrc\n", rc)); 5388 rc = VINF_SUCCESS; /* Set success when exiting. */ 5389 break; 5390 } 5391 } 5384 5392 5385 5393 delete pEventQueue; -
trunk/src/VBox/Main/webservice/vboxweb.cpp
r46478 r46651 26 26 #include <VBox/com/ErrorInfo.h> 27 27 #include <VBox/com/errorprint.h> 28 #include <VBox/com/EventQueue.h>29 28 #include <VBox/com/listeners.h> 29 #include <VBox/com/NativeEventQueue.h> 30 30 #include <VBox/VBoxAuth.h> 31 31 #include <VBox/version.h> … … 1232 1232 } 1233 1233 1234 com:: EventQueue *pQ = com::EventQueue::getMainEventQueue();1234 com::NativeEventQueue *pQ = com::NativeEventQueue::getMainEventQueue(); 1235 1235 for (;;) 1236 1236 {
Note:
See TracChangeset
for help on using the changeset viewer.