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

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

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

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

Definition at line 399 of file AutoLock.cpp.

Referenced by util::AutoLockBase::cleanup(), and util::AutoLockBase::release().

    // unlock in reverse order!
    for (HandlesVector::reverse_iterator it = m->aHandles.rbegin();
         it != m->aHandles.rend();
        LockHandle *pHandle = *it;
        if (pHandle)
            // call virtual function implemented in AutoWriteLock or AutoReadLock

Generated by  Doxygen 1.6.0   Back to index