VirtualBox

Changeset 24157 in vbox


Ignore:
Timestamp:
Oct 29, 2009 12:27:25 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54093
Message:

MediumImpl.cpp: log locking.

File:
1 edited

Legend:

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

    r24134 r24157  
    18351835                m->accessibleInLock = false;
    18361836
     1837            LogFlowThisFunc(("Okay - prev state=%d readers=%d\n", m->state, m->readers));
    18371838            m->state = MediumState_LockedRead;
    18381839
     
    18411842        default:
    18421843        {
     1844            LogFlowThisFunc(("Failing - state=%d\n", m->state));
    18431845            rc = setStateError();
    18441846            break;
     
    18801882                }
    18811883
     1884                LogFlowThisFunc(("new state=%d\n", m->state));
    18821885                break;
    18831886            }
     
    18871890        default:
    18881891        {
     1892            LogFlowThisFunc(("Failing - state=%d\n", m->state));
    18891893            rc = setError(VBOX_E_INVALID_OBJECT_STATE,
    18901894                          tr ("Medium '%ls' is not locked for reading"),
     
    19281932                m->accessibleInLock = false;
    19291933
     1934            LogFlowThisFunc(("Okay - prev state=%d\n", m->state));
    19301935            m->state = MediumState_LockedWrite;
    19311936            break;
     
    19331938        default:
    19341939        {
     1940            LogFlowThisFunc(("Failing - state=%d\n", m->state));
    19351941            rc = setStateError();
    19361942            break;
     
    19621968            else
    19631969                m->state = MediumState_Inaccessible;
     1970            LogFlowThisFunc(("new state=%d\n", m->state));
    19641971            break;
    19651972        }
    19661973        default:
    19671974        {
     1975            LogFlowThisFunc(("Failing - state=%d\n", m->state));
    19681976            rc = setError(VBOX_E_INVALID_OBJECT_STATE,
    19691977                          tr ("Medium '%ls' is not locked for writing"),
     
    36013609         * since any COMGETTER(State) is (or will be) blocked until we finish
    36023610         * and restore the actual state. */
     3611        LogFlowThisFunc(("read locking - prev state=%d - %ls\n", m->state, m->locationFull.raw()));
    36033612        m->state = MediumState_LockedRead;
    36043613        tempStateSet = true;
     
    38493858        else
    38503859            m->state = MediumState_Inaccessible;
     3860        LogFlowThisFunc(("restored state=%d\n", m->state));
    38513861    }
    38523862    else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette