PHP Class malkusch\lock\mutex\SemaphoreMutex

Author: Markus Malkusch ([email protected])
Inheritance: extends LockMutex
Datei anzeigen Open project: malkusch/lock

Public Methods

Method Description
__construct ( $semaphore ) Sets the semaphore id.

Protected Methods

Method Description
lock ( )
unlock ( )

Method Details

__construct() public method

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 method

protected lock ( )

unlock() protected method

protected unlock ( )