Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readLockInfo (0.26 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockFileAccess.java

            lockInfo.pid = pid;
            lockInfo.operation = operation;
            lockInfoAccess.writeLockInfo(lockFileAccess, lockInfo);
        }
    
        public LockInfo readLockInfo() throws IOException {
            return lockInfoAccess.readLockInfo(lockFileAccess);
        }
    
        /**
         * Reads the lock state from the lock file, possibly writing out a new lock file if not present or empty.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/filelock/LockInfoAccess.java

        private final long infoRegionPos;
    
        public LockInfoAccess(long infoRegionPos) {
            this.infoRegionPos = infoRegionPos;
        }
    
        public LockInfo readLockInfo(RandomAccessFile lockFileAccess) throws IOException {
            if (lockFileAccess.length() <= infoRegionPos) {
                return new LockInfo();
            } else {
                lockFileAccess.seek(infoRegionPos);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                    LOGGER.debug("Could not lock information region for {}. Ignoring.", displayName);
                } else {
                    try {
                        out = lockFileAccess.readLockInfo();
                    } finally {
                        lockOutcome.getFileLock().release();
                    }
                }
                return out;
            }
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top