VirtualBox

Changeset 64213 in vbox for trunk


Ignore:
Timestamp:
Oct 11, 2016 3:58:12 PM (8 years ago)
Author:
vboxsync
Message:

Main/MediumLock: when destroying locks, lock lists or lock list maps, keep the error information unchanged, because it's very surprising behavior that the potential unlock errors are showing up in the thread's error info, often losing it during error handling

File:
1 edited

Legend:

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

    r62485 r64213  
    3030MediumLock::~MediumLock()
    3131{
     32    // destroying medium locks is routinely done as part of error handling
     33    // and it's not expected to lose error info
     34    ErrorInfoKeeper eik;
    3235    Unlock();
    3336}
     
    156159MediumLockList::~MediumLockList()
    157160{
     161    // destroying medium lock lists is routinely done as part of error handling
     162    // and it's not expected to lose error info
     163    ErrorInfoKeeper eik;
    158164    Clear();
    159165    // rest is done by the list object's destructor
     
    269275MediumLockListMap::~MediumLockListMap()
    270276{
     277    // destroying medium lock list maps is routinely done as part of
     278    // error handling and it's not expected to lose error info
     279    ErrorInfoKeeper eik;
    271280    Clear();
    272281    // rest is done by the map object's destructor
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