Documentation

FileLock
in package
implements LockInterface

Interfaces, Classes and Traits

LockInterface
This interface allows application components to implement locking for spitfire, generally we lock using files, but we could also use other mechanisms like remote servers, databases or semaphores.

Table of Contents

$file  : mixed
$handle  : mixed
__construct()  : mixed
lock()  : LockInterface
synchronize()  : mixed
unlock()  : mixed

Properties

Methods

__construct()

public __construct(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

synchronize()

public synchronize(mixed $fn[, mixed $wait = true ]) : mixed
Parameters
$fn : mixed
$wait : mixed = true
Return values
mixed

unlock()

public unlock() : mixed
Return values
mixed

Search results