[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Provides of semaphore semantics for restricting the number of workers that may be concurrently performing the same task. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 92 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
PoolCounterWorkViaCallback:: (5 methods):
__construct()
doWork()
getCachedWork()
fallback()
error()
Class: PoolCounterWorkViaCallback - X-Ref
Convenience class for dealing with PoolCounters using callbacks__construct( $type, $key, array $callbacks ) X-Ref |
Build a PoolCounterWork class from a type, key, and callback map. The callback map must at least have a callback for the 'doWork' method. Additionally, callbacks can be provided for the 'doCachedWork', 'fallback', and 'error' methods. Methods without callbacks will be no-ops that return false. If a 'doCachedWork' callback is provided, then execute() may wait for any prior process in the pool to finish and reuse its cached result. param: string $type param: string $key param: array $callbacks Map of callbacks |
doWork() X-Ref |
No description |
getCachedWork() X-Ref |
No description |
fallback() X-Ref |
No description |
error( $status ) X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |