. */ /** * This file contains the Mutex interface. * Implement this interface to create a new mutex implementation. * * @author Dinu Florin * @package Core * @subpackage Mutex */ /** * Mutex interface. * * @author Dinu Florin * @package Core * @subpackage Mutex */ interface MutexInterface { /** * Constructor. * * @param string $name The mutex name. * @see Mutex::__construct() */ public function __construct($name); /** * Lock the mutex. */ public function lock(); /** * Unlock the mutex. */ public function unlock(); /** * Check if this class can be instantiated. This will check if the proper PHP extensions are installed * and if the requirements are met to use the mechanism that this class implements. * * @return boolean */ public static function canInstantiate(); } ?>