VirtualBox

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


Ignore:
Timestamp:
Feb 13, 2024 10:45:22 AM (11 months ago)
Author:
vboxsync
Message:

Config.kmk,Main,libs/xpcom,HostDrivers/Support,Installer: Make VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC the default and remove the deprecated code, bugref:10594

File:
1 edited

Legend:

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

    r103300 r103331  
    5151#include <iprt/pipe.h>
    5252#include <iprt/process.h>
     53#include <iprt/thread.h>
    5354#include <iprt/timer.h>
    5455#include <iprt/env.h>
     
    112113NS_DECL_CI_INTERFACE_GETTER(VirtualBoxWrap)
    113114
     115/* Living in VBoxXPCOMIPCD. */
     116DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdCreate(PRTTHREAD phThrdIpcd);
     117DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdDestroy(RTTHREAD hThrdIpcd);
     118
    114119////////////////////////////////////////////////////////////////////////////////
    115120
     
    664669}
    665670
    666 #ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
    667 
    668 #include <iprt/thread.h>
    669 
    670 DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdCreate(PRTTHREAD phThrdIpcd);
    671 DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdDestroy(RTTHREAD hThrdIpcd);
    672 #endif
     671
    673672
    674673int main(int argc, char **argv)
     
    832831    };
    833832
    834 #ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
     833    /* Spawn the IPC message I/O thread. */
    835834    RTTHREAD hThrdIpcd = NIL_RTTHREAD;
    836835    vrc = VBoxXpcomIpcdCreate(&hThrdIpcd);
    837836    if (RT_FAILURE(vrc))
    838837        return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to create IPC daemon thread -> %Rrc", vrc);
    839 #endif
    840838
    841839    do /* goto avoidance only */
     
    10181016        RTMsgError("Failed to shutdown XPCOM! (rc=%Rhrc)", rc);
    10191017
    1020 #ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC
    10211018    vrc = VBoxXpcomIpcdDestroy(hThrdIpcd);
    10221019    AssertRC(vrc);
    1023 #endif
    10241020
    10251021    RTPrintf("XPCOM server has shutdown.\n");
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