VirtualBox

Changeset 15974 in vbox


Ignore:
Timestamp:
Jan 15, 2009 5:22:18 PM (16 years ago)
Author:
vboxsync
Message:

XPCOM: fix a race condition in ipcDConnectService::Init.

File:
1 edited

Legend:

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

    r15922 r15974  
    29022902    return NS_ERROR_OUT_OF_MEMORY;
    29032903
     2904#ifdef VBOX
     2905  /* The DConnectWorker::Run method checks the ipcDConnectService::mDisconnected.
     2906   * So mDisconnect must be set here to avoid an immediate exit of the worker thread.
     2907   */
     2908  mDisconnected = PR_FALSE;
     2909#endif /* VBOX */
     2910
    29042911  // create a single worker thread
    29052912  rv = CreateWorker();
    29062913  if (NS_FAILED(rv))
    2907       return rv;
     2914#ifndef VBOX
     2915    return rv;
     2916#else /* VBOX */
     2917  {
     2918    mDisconnected = PR_TRUE;
     2919    return rv;
     2920  }
     2921#endif /* VBOX */
    29082922
    29092923#endif
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