Home
last modified time | relevance | path

Searched refs:lockfh (Results 1 – 2 of 2) sorted by relevance

/plugin/tokenbucketauth/
H A Dadmin.php58 $lockfh = fopen($lockf, 'w', false);
60 if($lockfh === false)
63 if(flock($lockfh, LOCK_EX) === false)
65 fclose($lockfh);
74 flock($lockfh, LOCK_UN);
75 fclose($lockfh);
86 flock($lockfh, LOCK_UN);
87 fclose($lockfh);
122 flock($lockfh, LOCK_UN);
123 fclose($lockfh);
H A Daction.php19 protected $lockfh; variable in action_plugin_tokenbucketauth
32 $this->lockfh = null;
203 $this->lockfh = fopen($lockf, 'w', false);
205 if($this->lockfh === false)
208 if(flock($this->lockfh, LOCK_EX) === false)
210 fclose($this->lockfh);
211 $this->lockfh = null;
223 if(!is_null($this->lockfh))
225 flock($this->lockfh, LOCK_UN);
226 fclose($this->lockfh);
[all …]