Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

void util::AutoLockBase::callLockOnAllHandles (  )  [protected, inherited]

Requests ownership of all contained lock handles by calling the pure virtual callLockImpl() function on each of them, which must be implemented by the descendant class; in the implementation, AutoWriteLock will request a write lock whereas AutoReadLock will request a read lock.

Does *not* modify the lock counts in the member variables.

Definition at line 377 of file AutoLock.cpp.

Referenced by util::AutoLockBase::acquire().

    for (HandlesVector::iterator it = m->aHandles.begin();
         it != m->aHandles.end();
        LockHandle *pHandle = *it;
        if (pHandle)
            // call virtual function implemented in AutoWriteLock or AutoReadLock

Generated by  Doxygen 1.6.0   Back to index