code: public boolean isLocked() {
  
  		// always return false when lock is disabled
  
  		if (disabled.get()) {
  			return false;
  		}
  
  		// check if locked by current process
  
  		if (locked.get()) {
  			return true;
  		}
  
  		// check if locked by other process
  
  		if (!lock.exists()) {
  			return false;
  		}
  
  		long now = System.currentTimeMillis();
  		long tsp = read();
  
  		LOG.trace("Lock timestamp {} now {} for {}", tsp, now, webcam);
  
  		if (tsp > now - INTERVAL * 2) {
  			return true;
  		}
  
  		return false;
  	}
docs: Check if webcam is locked.
  
  @return True if webcam is locked, false otherwise