VirtualBox

Changeset 29945 in vbox for trunk/src


Ignore:
Timestamp:
Jun 1, 2010 12:49:25 PM (15 years ago)
Author:
vboxsync
Message:

Main/Host: remove host lock from Host::GetNetworkInterfaces (the other methods which enumerate interfaces don't take it either), and leave the VirtualBox lock for the called setVirtualBox method since there is no chance of lock order violations any more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r29620 r29945  
    500500    AutoCaller autoCaller(this);
    501501    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    502 
    503     /* The code is so hideously complicated that I can't tell whether the
    504      * host object lock is really needed. It was taken here, and as the
    505      * VirtualBox (mParent) is taken as well below nested deep down that
    506      * would be a lock order violation. */
    507     AutoMultiWriteLock2 alock(m->pParent, this COMMA_LOCKVAL_SRC_POS);
    508502
    509503    std::list <ComObjPtr<HostNetworkInterface> > list;
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