SimpleMutexSimple Mutex Class
A Class that Acts as a simple Mutex on an abstract manner it Takes a Communication class and all Reading/Writting Process Must go through it it used with uncontrolled Communications (e.g. Shmop ) and not used with alredy controlled ones(e.g. MySQL)
Located in /Sync/SimpleMutex.php (line 16)
ComBasic
$ComHelper
(line 23)
The Communication Helper Wrapped
Constructor SimpleMutex (line 32)
Simple Mutex Class Constructor
Reading is Allowed at it's starting
Get (line 46)
Communication Varaibles Getter Function
it checks for the Availability of Reading , if not available it halts for 0.1 sec and tries again
MLock (line 79)
The Lock Checking Function this function checks the existance of a lock over the Communication class through checking the "Read" Communication Varaible
Set (line 66)
Communication Varaibles Setter Function
it sets a global lock and then changes the value then it releases the lock
SetBusy (line 91)
Setting the Lock function
just set the "Read" value to "OFF"
UnSetBusy (line 100)
Releasing the Lock function
just set the "Read" value to "ON"
Documentation generated on Fri, 01 Aug 2008 05:54:17 +0300 by phpDocumentor 1.4.1