VirtualBox

Changeset 38743 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 13, 2011 2:54:35 PM (13 years ago)
Author:
vboxsync
Message:

Main: AutoMultiWriteLock4

File:
1 edited

Legend:

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

    r38717 r38743  
    752752}
    753753
     754AutoMultiWriteLock4::AutoMultiWriteLock4(Lockable *pl1,
     755                                         Lockable *pl2,
     756                                         Lockable *pl3,
     757                                         Lockable *pl4
     758                                         COMMA_LOCKVAL_SRC_POS_DECL)
     759    : AutoWriteLockBase(4
     760                        COMMA_LOCKVAL_SRC_POS_ARGS)
     761{
     762    if (pl1)
     763        m->aHandles[0] = pl1->lockHandle();
     764    if (pl2)
     765        m->aHandles[1] = pl2->lockHandle();
     766    if (pl3)
     767        m->aHandles[2] = pl3->lockHandle();
     768    if (pl4)
     769        m->aHandles[3] = pl4->lockHandle();
     770    acquire();
     771}
     772
     773AutoMultiWriteLock4::AutoMultiWriteLock4(LockHandle *pl1,
     774                                         LockHandle *pl2,
     775                                         LockHandle *pl3,
     776                                         LockHandle *pl4
     777                                         COMMA_LOCKVAL_SRC_POS_DECL)
     778    : AutoWriteLockBase(4
     779                        COMMA_LOCKVAL_SRC_POS_ARGS)
     780{
     781    m->aHandles[0] = pl1;
     782    m->aHandles[1] = pl2;
     783    m->aHandles[2] = pl3;
     784    m->aHandles[3] = pl4;
     785    acquire();
     786}
     787
    754788} /* namespace util */
    755789/* vi: set tabstop=4 shiftwidth=4 expandtab: */
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