VirtualBox

Changeset 46651 in vbox for trunk/src


Ignore:
Timestamp:
Jun 19, 2013 11:54:43 AM (12 years ago)
Author:
vboxsync
Message:

Build fix.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/NativeEventQueue.cpp

    r46649 r46651  
    8181struct MyPLEvent : public PLEvent
    8282{
    83     MyPLEvent(Event *e) : event(e) {}
    84     Event *event;
     83    MyPLEvent(NativeEvent *e) : event(e) {}
     84    NativeEvent *event;
    8585};
    8686
     
    8888void *PR_CALLBACK com::NativeEventQueue::plEventHandler(PLEvent *self)
    8989{
    90     Event *ev = ((MyPLEvent *)self)->event;
     90    NativeEvent *ev = ((MyPLEvent *)self)->event;
    9191    if (ev)
    9292        ev->handler();
     
    103103void PR_CALLBACK com::NativeEventQueue::plEventDestructor(PLEvent *self)
    104104{
    105     Event *ev = ((MyPLEvent *)self)->event;
     105    NativeEvent *ev = ((MyPLEvent *)self)->event;
    106106    if (ev)
    107107        delete ev;
     
    222222        /* Check that it actually is the main event queue, i.e. that
    223223           we're called on the right thread. */
    224         nsCOMPtr<nsINativeEventQueue> q;
     224        nsCOMPtr<nsIEventQueue> q;
    225225        nsresult rv = NS_GetMainEventQ(getter_AddRefs(q));
    226226        Assert(NS_SUCCEEDED(rv));
     
    646646{
    647647#ifdef VBOX_WITH_XPCOM
    648     return mEventQ->GetNativeEventQueueSelectFD();
     648    return mEventQ->GetEventQueueSelectFD();
    649649#else
    650650    return -1;
  • trunk/src/VBox/Main/glue/initterm.cpp

    r46649 r46651  
    556556            if (--gXPCOMInitCount == 0)
    557557            {
    558                 MainEventQueue::uninit();
     558                NativeEventQueue::uninit();
    559559                rc = NS_ShutdownXPCOM(nsnull);
    560560
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r46649 r46651  
    53805380         * See @bugref{5724}.
    53815381         */
    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        }
    53845392
    53855393        delete pEventQueue;
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r46478 r46651  
    2626#include <VBox/com/ErrorInfo.h>
    2727#include <VBox/com/errorprint.h>
    28 #include <VBox/com/EventQueue.h>
    2928#include <VBox/com/listeners.h>
     29#include <VBox/com/NativeEventQueue.h>
    3030#include <VBox/VBoxAuth.h>
    3131#include <VBox/version.h>
     
    12321232    }
    12331233
    1234     com::EventQueue *pQ = com::EventQueue::getMainEventQueue();
     1234    com::NativeEventQueue *pQ = com::NativeEventQueue::getMainEventQueue();
    12351235    for (;;)
    12361236    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette