Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

MutexLock< num_doors >::door_t Struct Reference

#include <MutexLock.h>

List of all members.


Detailed Description

template<unsigned int num_doors>
struct MutexLock< num_doors >::door_t

Holds per process shared info, one of these per process.

Definition at line 331 of file MutexLock.h.

Public Member Functions

 door_t ()
 constructor

Public Attributes

int id
 process ID this doorway is assigned to
volatile bool FCFS_in_use
 In FCFS doorway, corresponds to 'c_i'.
volatile bool BL_ready
 Signals past FCFS doorway, ready for BL doorway, corresponds to 'v_i'.
volatile bool BL_in_use
 Burns-Lamport doorway, corresponds to 'x_i'.
volatile unsigned char turn
 clock pulse, initial value doesn't matter
unsigned char next_turn_bit
 selects which bit of turn will be flipped next


Constructor & Destructor Documentation

template<unsigned int num_doors>
MutexLock< num_doors >::door_t::door_t  )  [inline]
 

constructor

Definition at line 332 of file MutexLock.h.


Member Data Documentation

template<unsigned int num_doors>
volatile bool MutexLock< num_doors >::door_t::BL_in_use
 

Burns-Lamport doorway, corresponds to 'x_i'.

Definition at line 337 of file MutexLock.h.

Referenced by MutexLock< num_doors >::do_try_lock(), and MutexLock< num_doors >::unlock().

template<unsigned int num_doors>
volatile bool MutexLock< num_doors >::door_t::BL_ready
 

Signals past FCFS doorway, ready for BL doorway, corresponds to 'v_i'.

Definition at line 336 of file MutexLock.h.

Referenced by MutexLock< num_doors >::do_try_lock(), and MutexLock< num_doors >::unlock().

template<unsigned int num_doors>
volatile bool MutexLock< num_doors >::door_t::FCFS_in_use
 

In FCFS doorway, corresponds to 'c_i'.

Definition at line 335 of file MutexLock.h.

Referenced by MutexLock< num_doors >::do_try_lock().

template<unsigned int num_doors>
int MutexLock< num_doors >::door_t::id
 

process ID this doorway is assigned to

Definition at line 334 of file MutexLock.h.

Referenced by MutexLock< num_doors >::forget(), MutexLock< num_doors >::lookup(), and MutexLock< MAX_ACCESS >::owner().

template<unsigned int num_doors>
unsigned char MutexLock< num_doors >::door_t::next_turn_bit
 

selects which bit of turn will be flipped next

Definition at line 339 of file MutexLock.h.

Referenced by MutexLock< num_doors >::do_try_lock().

template<unsigned int num_doors>
volatile unsigned char MutexLock< num_doors >::door_t::turn
 

clock pulse, initial value doesn't matter

Definition at line 338 of file MutexLock.h.

Referenced by MutexLock< num_doors >::do_try_lock().


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:05 2005 by Doxygen 1.4.4