Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

MutexLockBase Class Reference

#include <MutexLock.h>

Inheritance diagram for MutexLockBase:

Inheritance graph
[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 33 of file MutexLock.h.

Public Member Functions

virtual ~MutexLockBase ()
 basic destructor

Static Public Member Functions

static void aboutToFork ()

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)


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

Tekkotsu v3.0
Generated Fri May 11 20:08:27 2007 by Doxygen 1.4.7