PHP Class malkusch\lock\mutex\SemaphoreMutex

Author: Markus Malkusch ([email protected])
Inheritance: extends LockMutex
Afficher le fichier Open project: malkusch/lock

Méthodes publiques

Méthode Description
__construct ( $semaphore ) Sets the semaphore id.

Méthodes protégées

Méthode Description
lock ( )
unlock ( )

Method Details

__construct() public méthode

Use {@link sem_get()} to create the semaphore id. Example: $semaphore = sem_get(ftok(__FILE__, "a")); $mutex = new SemaphoreMutex($semaphore);
public __construct ( $semaphore )

lock() protected méthode

protected lock ( )

unlock() protected méthode

protected unlock ( )