Example #1
0
 /**
  * Locks this file, locks have to be checked manually
  * @param boolean $waitForLock True to keep trying to get the lock, false to throw
  * an exception when the file is locked
  * @param integer $waitTime Time in microseconds to wait between the lock checks
  * @return null
  * @throws zibo\library\filesystem\exception\FileSystemException when $waitForLock
  * is false and the file is locked
  */
 public function lock($waitForLock = true, $waitTime = 10000)
 {
     $this->fs->lock($this, $waitForLock, $waitTime);
 }