SemaphorePool Class Reference
[Different locking methods implementation]

Single access point to application-wide locker implementation. More...

Inheritance diagram for SemaphorePool:

Inheritance graph
[legend]

List of all members.

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 ()
 
Returns:
SemaphorePool


Protected Member Functions

 __construct ()

Static Private Attributes

static $lockerName = 'SystemFiveLocker'
static $locker = null


Detailed Description

Single access point to application-wide locker implementation.

See also:
SystemFiveLocker for default locker

FileLocker for 'universal' locker

DirectoryLocker for slow and dirty locker

eAcceleratorLocker for eA-based locker

Definition at line 23 of file SemaphorePool.class.php.


Constructor & Destructor Documentation

SemaphorePool::__construct (  )  [protected]

Reimplemented from Singleton.

Definition at line 28 of file SemaphorePool.class.php.

References Singleton::getInstance().

Here is the call graph for this function:

SemaphorePool::__destruct (  ) 

Definition at line 69 of file SemaphorePool.class.php.


Member Function Documentation

static SemaphorePool::setDefaultLocker ( name  )  [static]

Definition at line 33 of file SemaphorePool.class.php.

References Singleton::getInstance(), and Assert::isTrue().

Here is the call graph for this function:

static SemaphorePool::me (  )  [static]

Returns:
SemaphorePool

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().

Here is the call graph for this function:

SemaphorePool::get ( key  ) 

acquire lock

Reimplemented from BaseLocker.

Definition at line 49 of file SemaphorePool.class.php.

SemaphorePool::free ( key  ) 

release lock

Reimplemented from BaseLocker.

Definition at line 54 of file SemaphorePool.class.php.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:25 2007 for onPHP by  doxygen 1.5.4