VirtualBox

Changeset 25894 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jan 18, 2010 2:16:58 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56706
Message:

Main: less locks: use the same lock for several lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/objectslist.h

    r25834 r25894  
    5959        // http://www.parashift.com/c++-faq-lite/templates.html#faq-35.18
    6060
    61     ObjectsList(VBoxLockingClass lockClass)
    62         : m_lock(lockClass)
     61    ObjectsList(RWLockHandle &lockHandle)
     62        : m_lock(lockHandle)
    6363    { }
    6464
     
    201201private:
    202202    MyList          m_ll;
    203     RWLockHandle    m_lock;
     203    RWLockHandle    &m_lock;
    204204};
    205205
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