#include <spinlock.h>
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 |
|
Constructs and initializes the spin lock mutex object. The object is created in the SPIN_LOCK_AVAILABLE state. |
|
Destroys the spin lock mutex object.
|
|
|
|
The spin lock may be acquired.
|
|
The spin lock may not be acquired.
|