VirtualBox

Changeset 103300 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Feb 11, 2024 8:33:57 PM (11 months ago)
Author:
vboxsync
Message:

libs/xpcom,Main: Disabled code to move VBoxXPCOMIPCD into VBoxSVC, bugref:10594

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/xpcom/server.cpp

    r102052 r103300  
    664664}
    665665
     666#ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
     667
     668#include <iprt/thread.h>
     669
     670DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdCreate(PRTTHREAD phThrdIpcd);
     671DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdDestroy(RTTHREAD hThrdIpcd);
     672#endif
     673
    666674int main(int argc, char **argv)
    667675{
     
    824832    };
    825833
     834#ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
     835    RTTHREAD hThrdIpcd = NIL_RTTHREAD;
     836    vrc = VBoxXpcomIpcdCreate(&hThrdIpcd);
     837    if (RT_FAILURE(vrc))
     838        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to create IPC daemon thread -> %Rrc", vrc);
     839#endif
     840
    826841    do /* goto avoidance only */
    827842    {
     
    10031018        RTMsgError("Failed to shutdown XPCOM! (rc=%Rhrc)", rc);
    10041019
     1020#ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
     1021    vrc = VBoxXpcomIpcdDestroy(hThrdIpcd);
     1022    AssertRC(vrc);
     1023#endif
     1024
    10051025    RTPrintf("XPCOM server has shutdown.\n");
    10061026
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