VirtualBox

Changeset 40452 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 13, 2012 5:18:22 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76809
Message:

Main/glue/AutoLock: if we have the assertions we can make use of them...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/AutoLock.cpp

    r40257 r40452  
    423423void AutoLockBase::acquire()
    424424{
    425     AssertMsg(!m->fIsLocked, ("m->fIsLocked is true, attempting to lock twice!"));
     425    AssertMsgReturnVoid(!m->fIsLocked, ("m->fIsLocked is true, attempting to lock twice!"));
    426426    callLockOnAllHandles();
    427427    m->fIsLocked = true;
     
    433433void AutoLockBase::release()
    434434{
    435     AssertMsg(m->fIsLocked, ("m->fIsLocked is false, cannot release!"));
     435    AssertMsgReturnVoid(m->fIsLocked, ("m->fIsLocked is false, cannot release!"));
    436436    callUnlockOnAllHandles();
    437437    m->fIsLocked = false;
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