MutexLockBase Class Reference#include <MutexLock.h>
Inheritance diagram for MutexLockBase:
[legend]List of all members.
Detailed Description
The main purpose of this base class is actually to allow setting of usleep_granularity across all locks.
It would be nice if we just put functions in here so we could reference locks without regard to the number of doors, but then all processes which use the lock would have to have been created via fork to handle virtual calls properly, and I don't want to put that overhead on the otherwise lightweight SoundPlay process under Aperios.
Definition at line 28 of file MutexLock.h.
|
Public Member Functions |
virtual | ~MutexLockBase () |
| basic destructor
|
Static Public Attributes |
static const unsigned int | NO_OWNER = -1U |
| marks as unlocked
|
static unsigned int | usleep_granularity = 5000 |
| the estimated cost in microseconds of usleep call itself -- value passed to usleep will be 10 times this (only used by software lock implementation on non-Aperios)
|
Constructor & Destructor Documentation
virtual MutexLockBase::~MutexLockBase |
( |
|
) |
[inline, virtual] |
|
Member Data Documentation
|
the estimated cost in microseconds of usleep call itself -- value passed to usleep will be 10 times this (only used by software lock implementation on non-Aperios)
Definition at line 33 of file MutexLock.h.
Referenced by MutexLock< MAX_ACCESS >::spin(). |
The documentation for this class was generated from the following files:
|