VirtualBox

Changeset 15983 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Jan 16, 2009 9:23:30 AM (16 years ago)
Author:
vboxsync
Message:

XPCOM: code cleanup and logging in ipcDConnectService.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp

    r15974 r15983  
    27972797  {
    27982798    nsAutoLock lock(mLock);
    2799 #ifdef VBOX /* tracking an illegal join in Shutdown. */
     2799    /* tracking an illegal join in Shutdown. */
    28002800    NS_ASSERTION(!mDisconnected, "CreateWorker racing Shutdown");
    2801 #endif
    28022801    if (!mWorkers.AppendElement(worker))
    28032802      rv = NS_ERROR_OUT_OF_MEMORY;
     
    28582857  nsresult rv;
    28592858
     2859  LOG(("ipcDConnectService::Init.\n"));
     2860
    28602861  rv = IPC_DefineTarget(kDConnectTargetID, this);
    28612862  if (NS_FAILED(rv))
     
    29022903    return NS_ERROR_OUT_OF_MEMORY;
    29032904
    2904 #ifdef VBOX
    29052905  /* The DConnectWorker::Run method checks the ipcDConnectService::mDisconnected.
    29062906   * So mDisconnect must be set here to avoid an immediate exit of the worker thread.
    29072907   */
    29082908  mDisconnected = PR_FALSE;
    2909 #endif /* VBOX */
    29102909
    29112910  // create a single worker thread
    29122911  rv = CreateWorker();
    29132912  if (NS_FAILED(rv))
    2914 #ifndef VBOX
    2915     return rv;
    2916 #else /* VBOX */
    29172913  {
    29182914    mDisconnected = PR_TRUE;
    29192915    return rv;
    29202916  }
    2921 #endif /* VBOX */
    29222917
    29232918#endif
     
    29262921  mInstance = this;
    29272922
     2923  LOG(("ipcDConnectService::Init NS_OK.\n"));
    29282924  return NS_OK;
    29292925}
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