MediaWiki REL1_34
PoolCounterNull.php
Go to the documentation of this file.
1<?php
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}
A default PoolCounter, which provides no locking.
release()
I have successfully finished my task.
acquireForMe()
I want to do this task and I need to do it myself.
acquireForAnyone()
I want to do this task, but if anyone else does it instead, it's also fine for me.
When you have many workers (threads/servers) giving service, and a cached item expensive to produce e...