MediaWiki
1.34.0
PoolCounterNull.php
Go to the documentation of this file.
1
<?php
27
class
PoolCounterNull
extends
PoolCounter
{
28
29
public
function
__construct
() {
30
/* No parameters needed */
31
}
32
33
public
function
acquireForMe
() {
34
return
Status::newGood
(
PoolCounter::LOCKED
);
35
}
36
37
public
function
acquireForAnyone
() {
38
return
Status::newGood
(
PoolCounter::LOCKED
);
39
}
40
41
public
function
release
() {
42
return
Status::newGood
(
PoolCounter::RELEASED
);
43
}
44
}
PoolCounterNull\acquireForAnyone
acquireForAnyone()
I want to do this task, but if anyone else does it instead, it's also fine for me.
Definition:
PoolCounterNull.php:37
PoolCounterNull
A default PoolCounter, which provides no locking.
Definition:
PoolCounterNull.php:27
PoolCounter\LOCKED
const LOCKED
Definition:
PoolCounter.php:47
PoolCounter
When you have many workers (threads/servers) giving service, and a cached item expensive to produce e...
Definition:
PoolCounter.php:45
StatusValue\newGood
static newGood( $value=null)
Factory function for good results.
Definition:
StatusValue.php:81
PoolCounterNull\release
release()
I have successfully finished my task.
Definition:
PoolCounterNull.php:41
PoolCounterNull\acquireForMe
acquireForMe()
I want to do this task and I need to do it myself.
Definition:
PoolCounterNull.php:33
PoolCounterNull\__construct
__construct()
Definition:
PoolCounterNull.php:29
PoolCounter\RELEASED
const RELEASED
Definition:
PoolCounter.php:48
includes
poolcounter
PoolCounterNull.php
Generated on Thu Dec 19 2019 14:54:42 for MediaWiki by
1.8.16