4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionProcessLocker.php';
32 $this->lockFileHandles = array();
37 $this->
requestLock(self::PROCESS_NAME_PERSIST_WORKING_STATE);
42 $this->
releaseLock(self::PROCESS_NAME_PERSIST_WORKING_STATE);
48 $this->lockFileHandles[$processName] = fopen($lockFilePath,
'w');
49 flock($this->lockFileHandles[$processName], LOCK_EX);
54 $path = $this->lockFileStorage->getPath();
55 return $path.
'/'.$processName.
'.lock';
60 flock($this->lockFileHandles[$processName], LOCK_UN);
61 fclose($this->lockFileHandles[$processName]);