Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updateRootUnderLock (0.57 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/AbstractVirtualFileSystem.java

            updateLock.lock();
            try {
                runnable.run();
            } finally {
                updateLock.unlock();
            }
        }
    
        protected void updateRootUnderLock(UnaryOperator<SnapshotHierarchy> updateFunction) {
            underLock(() -> {
                SnapshotHierarchy currentRoot = root;
                root = updateFunction.apply(currentRoot);
            });
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/vfs/impl/WatchingNotSupportedVirtualFileSystem.java

            BuildOperationRunner buildOperationRunner
        ) {
            if (watchMode == WatchMode.ENABLED) {
                LOGGER.warn("Watching the file system is not supported.");
            }
            updateRootUnderLock(vfsRoot -> buildOperationRunner.call(new CallableBuildOperation<SnapshotHierarchy>() {
                @Override
                public SnapshotHierarchy call(BuildOperationContext context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:41:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/vfs/impl/WatchingNotSupportedVirtualFileSystemTest.groovy

            then:
            watchingNotSupportedVfs.root == emptySnapshotHierarchy
    
            when:
            watchingNotSupportedVfs.updateRootUnderLock { root -> nonEmptySnapshotHierarchy }
            watchingNotSupportedVfs.beforeBuildFinished(watchMode, VfsLogging.NORMAL, WatchLogging.NORMAL, buildOperationRunner, Integer.MAX_VALUE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/file/TestVirtualFileSystem.java

            return updateFunction.update(SnapshotHierarchy.NodeDiffListener.NOOP);
        }
    
        public void setRoot(SnapshotHierarchy newRoot) {
            updateRootUnderLock(root -> newRoot);
        }
    
        public SnapshotHierarchy getRoot() {
            return root;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 08 14:17:29 UTC 2022
    - 1.3K bytes
    - Viewed (0)
Back to top