The Gravey Framework and RATS RIA

Class MVCMutex

Object
   |
   +--GrvObject
         |
         +--MVCMutex

class MVCMutex
extends GrvObject


This class encapsulates a Map of mutual exclusion data; It self-registers instantiations into a static Map; This class implements Lamport's bakery algorithm for mutual exclusion; It is used to execute Command objects while making sure that no other Command objects (that are using Mutex) are executed at the same time.

NOTE: our main use for this is to keep background AJAX processing from confusing foreground UI processing, which can otherwise occur because both are making data model changes simultaneously.
Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:

Defined in grvMVC.js


Field Summary
<static>  Object Map
          
 
Constructor Summary
MVCMutex ()
           
 
Method Summary
 void cpuSlice( <int> optStartID )
           continue the processing of "this" mutex/command object
 void invoke()
           launch the processing of "this" mutex/command object
 void konstructor( <Command> cmdObj, <String> methodName, <boolean> optInhibitInvoke )
          
<static> void CpuSlice( <int> cmdID, <int> optStartID )
           Static method to give a slice of CPU to mutex with given ID
 
Methods inherited from class GrvObject
souper
 

Field Detail

Map

<static> Object Map

Constructor Detail

MVCMutex

MVCMutex()

Method Detail

cpuSlice

void cpuSlice( <int> optStartID )

invoke

void invoke()

konstructor

void konstructor( <Command> cmdObj, <String> methodName, <boolean> optInhibitInvoke )

CpuSlice

<static> void CpuSlice( <int> cmdID, <int> optStartID )

The Gravey Framework and RATS RIA

Documentation generated by JSDoc on Sat Dec 8 21:52:02 2007