[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/filesystem/ -> LockHandler.php (summary)

(no description)

File Size: 115 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LockHandler:: (3 methods):
  __construct()
  lock()
  release()


Class: LockHandler  - X-Ref

LockHandler class provides a simple abstraction to lock anything by means of
a file lock.

A locked file is created based on the lock name when calling lock(). Other
lock handlers will not be able to lock the same name until it is released
(explicitly by calling release() or implicitly when the instance holding the
lock is destroyed).

__construct($name, $lockPath = null)   X-Ref

param: string      $name     The lock name
param: string|null $lockPath The directory to store the lock. Default values will use temporary directory

lock($blocking = false)   X-Ref
Lock the resource.

param: bool $blocking Wait until the lock is released
return: bool Returns true if the lock was acquired, false otherwise

release()   X-Ref
Release the resource.




Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1