You are here

public function vfsStreamFile::isLocked in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php \org\bovigo\vfs\vfsStreamFile::isLocked()

checks whether file is locked

@since 0.10.0

Parameters

resource|vfsStreamWrapper $resource:

Return value

bool

See also

https://github.com/mikey179/vfsStream/issues/6

https://github.com/mikey179/vfsStream/issues/40

1 call to vfsStreamFile::isLocked()
vfsStreamFile::lock in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
locks file for

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php, line 338

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function isLocked($resource = null) {
  return $this
    ->hasSharedLock($resource) || $this
    ->hasExclusiveLock($resource);
}