Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Zygoma::SpinLockMutex Class Reference
[Kernel Synchronization Support]

#include <spinlock.h>

List of all members.


Detailed Description

A MUTual EXclusion object that is lockable via a spinlock.

Other than creation and destruction, all access to this object is through an object of the SPinLock class.


Public Member Functions

 SpinLockMutex ()
 Constructs and initializes the spin lock mutex object.
 ~SpinLockMutex ()
 Destroys the spin lock mutex object.

Static Protected Attributes

Mutex States
These are the valid states a spin lock mutex may be in.

*static const AtomicWord SPIN_LOCK_AVAILABLE = 0
 The spin lock may be acquired.
static const AtomicWord SPIN_LOCK_UNAVAILABLE = ~SPIN_LOCK_AVAILABLE
 The spin lock may not be acquired.

Friends

class SpinLock


Constructor & Destructor Documentation

Zygoma::SpinLockMutex::SpinLockMutex  ) 
 

Constructs and initializes the spin lock mutex object.

The object is created in the SPIN_LOCK_AVAILABLE state.

Zygoma::SpinLockMutex::~SpinLockMutex  ) 
 

Destroys the spin lock mutex object.


Friends And Related Function Documentation

friend class SpinLock [friend]
 


Member Data Documentation

* static const AtomicWord Zygoma::SpinLockMutex::SPIN_LOCK_AVAILABLE = 0 [static, protected]
 

The spin lock may be acquired.

const AtomicWord Zygoma::SpinLockMutex::SPIN_LOCK_UNAVAILABLE = ~SPIN_LOCK_AVAILABLE [static, protected]
 

The spin lock may not be acquired.


The documentation for this class was generated from the following file:
Generated on Fri Sep 2 10:45:10 2005 for zygoma by doxygen 1.4.2