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
$file
private
mixed
$file
$handle
private
mixed
$handle
__construct()
public
__construct(mixed $file) : mixed
Parameters
-
$file
: mixed
-
Return values
mixed
—
lock()
public
lock([mixed $wait = true ]) : LockInterface
Parameters
-
$wait
: mixed
= true
-
Return values
LockInterface
—
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
—