Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        }
    
        /**
         * Reads the lock state from the lock file, possibly writing out a new lock file if not present or empty.
         */
        public LockState ensureLockState() throws IOException {
            return lockStateAccess.ensureLockState(lockFileAccess);
        }
    
        public LockState markClean(LockState lockState) throws IOException {
            LockState newState = lockState.completeUpdate();
    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/LockStateAccess.java

        public LockStateAccess(LockStateSerializer protocol) {
            this.protocol = protocol;
            stateRegionSize = STATE_CONTENT_START + protocol.getSize();
        }
    
        public LockState ensureLockState(RandomAccessFile lockFileAccess) throws IOException {
            if (lockFileAccess.length() == 0) {
                // File did not exist before locking, use some initial state
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                        // We have an exclusive lock (whether we asked for it or not).
    
                        // Update the state region
                        lockState = lockFileAccess.ensureLockState();
    
                        // Acquire an exclusive lock on the information region and write our details there
    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