Simple 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)
The Communication Helper Wrapped
Simple Mutex Class Constructor
Reading is Allowed at it's starting
Communication Varaibles Getter Function
it checks for the Availability of Reading , if not available it halts for 0.1 sec and tries again
The Lock Checking Function this function checks the existance of a lock over the Communication class through checking the "Read" Communication Varaible
Communication Varaibles Setter Function
it sets a global lock and then changes the value then it releases the lock
Setting the Lock function
just set the "Read" value to "OFF"
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