Changeset 103331 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Feb 13, 2024 10:45:22 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/xpcom/server.cpp
r103300 r103331 51 51 #include <iprt/pipe.h> 52 52 #include <iprt/process.h> 53 #include <iprt/thread.h> 53 54 #include <iprt/timer.h> 54 55 #include <iprt/env.h> … … 112 113 NS_DECL_CI_INTERFACE_GETTER(VirtualBoxWrap) 113 114 115 /* Living in VBoxXPCOMIPCD. */ 116 DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdCreate(PRTTHREAD phThrdIpcd); 117 DECL_IMPORT_NOTHROW(int) RTCALL VBoxXpcomIpcdDestroy(RTTHREAD hThrdIpcd); 118 114 119 //////////////////////////////////////////////////////////////////////////////// 115 120 … … 664 669 } 665 670 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 673 672 674 673 int main(int argc, char **argv) … … 832 831 }; 833 832 834 #ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC 833 /* Spawn the IPC message I/O thread. */ 835 834 RTTHREAD hThrdIpcd = NIL_RTTHREAD; 836 835 vrc = VBoxXpcomIpcdCreate(&hThrdIpcd); 837 836 if (RT_FAILURE(vrc)) 838 837 return RTMsgErrorExit(RTEXITCODE_FAILURE, "failed to create IPC daemon thread -> %Rrc", vrc); 839 #endif840 838 841 839 do /* goto avoidance only */ … … 1018 1016 RTMsgError("Failed to shutdown XPCOM! (rc=%Rhrc)", rc); 1019 1017 1020 #ifdef VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC1021 1018 vrc = VBoxXpcomIpcdDestroy(hThrdIpcd); 1022 1019 AssertRC(vrc); 1023 #endif1024 1020 1025 1021 RTPrintf("XPCOM server has shutdown.\n");
Note:
See TracChangeset
for help on using the changeset viewer.