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

util::LockHandle Class Reference

#include <AutoLock.h>

Inheritance diagram for util::LockHandle:

util::ReadLockOps util::WriteLockOps util::LockOps util::LockOps util::RWLockHandle util::WriteLockHandle

List of all members.


Detailed Description

Abstract read/write semaphore handle.

This is a base class to implement semaphores that provide read/write locking. Subclasses must implement all pure virtual methods of this class together with pure methods of ReadLockOps and WriteLockOps classes.

See the AutoWriteLock class documentation for the detailed description of read and write locks.

Definition at line 126 of file AutoLock.h.


Public Member Functions

virtual bool isWriteLockOnCurrentThread () const =0
LockOpsrlock ()
LockOpswlock ()
virtual uint32_t writeLockLevel () const =0

Protected Member Functions

void lock ()
void lock ()
virtual void lockRead ()=0
virtual void lockWrite ()=0
void unlock ()
void unlock ()
virtual void unlockRead ()=0
virtual void unlockWrite ()=0

Friends

class AutoReadLock
class AutoWriteLock

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index