PHP Class Icicle\Concurrent\Threading\Internal\Mutex

Inheritance: extends Threaded
显示文件 Open project: icicleio/concurrent Class Usage Examples

Public Methods

Method Description
acquire ( ) : Generator Attempts to acquire the lock and sleeps for a time if the lock could not be acquired.

Protected Methods

Method Description
release ( ) Releases the lock.

Method Details

acquire() public method

Attempts to acquire the lock and sleeps for a time if the lock could not be acquired.
public acquire ( ) : Generator
return Generator

release() protected method

Releases the lock.
protected release ( )