MediaWiki  master
PoolCounterNull.php
Go to the documentation of this file.
1 <?php
25 
26  public function __construct() {
27  // No parameters needed
28  }
29 
30  public function acquireForMe( $timeout = null ) {
32  }
33 
34  public function acquireForAnyone( $timeout = null ) {
36  }
37 
38  public function release() {
40  }
41 }
A default PoolCounter, which provides no locking.
release()
I have successfully finished my task.
acquireForMe( $timeout=null)
I want to do this task and I need to do it myself.
acquireForAnyone( $timeout=null)
I want to do this task, but if anyone else does it instead, it's also fine for me.
Semaphore semantics to restrict how many workers may concurrently perform a task.
Definition: PoolCounter.php:50
const LOCKED
Definition: PoolCounter.php:52
const RELEASED
Definition: PoolCounter.php:53
int $timeout
Maximum time in seconds to wait for the lock.
Definition: PoolCounter.php:76
static newGood( $value=null)
Factory function for good results.
Definition: StatusValue.php:85