Documentation

Class Phalcon\Sync\Semaphore

Source on GitHub

Methods

public __construct ([string $name], [int $initialval], [boolean $autounlock])

Phalcon\Sync\Semaphore constructor

public boolean lock ([unknown $wait])

Locks a semaphore object

public boolean unlock ([unknown $prevcount])

Unlocks a semaphore object