
Public Member Functions | |
| get ($key) | |
| acquire lock | |
| free ($key) | |
| release lock | |
| drop ($key) | |
| completely remove lock | |
| clean () | |
| drop all acquired/released locks | |
| __destruct () | |
Static Public Member Functions | |
| static | setDefaultLocker ($name) |
| static | me () |
| |
Protected Member Functions | |
| __construct () | |
Static Private Attributes | |
| static | $lockerName = 'SystemFiveLocker' |
| static | $locker = null |
FileLocker for 'universal' locker
DirectoryLocker for slow and dirty locker
eAcceleratorLocker for eA-based locker
Definition at line 23 of file SemaphorePool.class.php.
| SemaphorePool::__construct | ( | ) | [protected] |
Reimplemented from Singleton.
Definition at line 28 of file SemaphorePool.class.php.
References Singleton::getInstance().

| SemaphorePool::__destruct | ( | ) |
Definition at line 69 of file SemaphorePool.class.php.
| static SemaphorePool::setDefaultLocker | ( | $ | name | ) | [static] |
Definition at line 33 of file SemaphorePool.class.php.
References Singleton::getInstance(), and Assert::isTrue().

| static SemaphorePool::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 44 of file SemaphorePool.class.php.
References Singleton::getInstance().
Referenced by XCacheSegmentHandler::__construct(), ApcSegmentHandler::__construct(), SmartDaoWorker::cacheByQuery(), SmartDaoWorker::cacheListByQuery(), SmartDaoWorker::checkMap(), RubberFileSystem::operate(), and SmartDaoWorker::uncacheLists().

| SemaphorePool::get | ( | $ | key | ) |
| SemaphorePool::free | ( | $ | key | ) |
| SemaphorePool::drop | ( | $ | key | ) |
completely remove lock
Reimplemented from BaseLocker.
Definition at line 59 of file SemaphorePool.class.php.
| SemaphorePool::clean | ( | ) |
drop all acquired/released locks
Reimplemented from BaseLocker.
Definition at line 64 of file SemaphorePool.class.php.
SemaphorePool::$lockerName = 'SystemFiveLocker' [static, private] |
Definition at line 25 of file SemaphorePool.class.php.
SemaphorePool::$locker = null [static, private] |
Definition at line 26 of file SemaphorePool.class.php.
1.5.4