public static function getInstance() { $mutex = new Mutex('Storage.php'); if ($mutex->isLocked() == false) { $mutex->getLock(); if (!self::$_instance) { self::$_instance = new self(); } $mutex->releaseLock(); } return self::$_instance; }