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

uint32_t util::RWLockHandle::writeLockLevel (  )  const [virtual]

Returns the current write lock level of this semaphore. The lock level determines the number of nested lock() calls on the given semaphore handle.

Note that this call is valid only when the current thread owns a write lock on the given semaphore handle and will assert otherwise.

Implements util::LockHandle.

Definition at line 203 of file AutoLock.cpp.

    /* Note! This does not include read recursions done by the writer! */
    return RTSemRWGetWriteRecursion(m->sem);

Generated by  Doxygen 1.6.0   Back to index