VirtualBox

Changeset 106077 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Sep 17, 2024 7:36:17 PM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164843
Message:

Main: Name locks.

Location:
trunk/src/VBox/Main/src-all
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp

    r106061 r106077  
    195195    // getLockingClass() is overridden by many subclasses to return
    196196    // one of the locking classes listed at the top of AutoLock.h
    197     RWLockHandle *objLock = new RWLockHandle(getLockingClass());
     197    // getComponentName() returns the class name by default.
     198    RWLockHandle *objLock = new RWLockHandle(getLockingClass(), getComponentName());
    198199    if (!ASMAtomicCmpXchgPtr(&mObjectLock, objLock, NULL))
    199200    {
  • trunk/src/VBox/Main/src-all/VirtualBoxTranslator.cpp

    r106061 r106077  
    147147
    148148VirtualBoxTranslator::VirtualBoxTranslator()
    149     : util::RWLockHandle(util::LOCKCLASS_TRANSLATOR)
     149    : util::RWLockHandle(util::LOCKCLASS_TRANSLATOR, "VirtualBoxTranslator")
    150150    , m_cInstanceRefs(0)
    151151    , m_pDefaultComponent(NULL)
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