Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isInCacheAction (0.12 sec)

  1. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/cacheops/CacheAccessOperationsStack.java

            }
            stack.popCacheAction();
            if (stack.isEmpty()) {
                stackForThread.remove();
            }
        }
    
        public boolean isInCacheAction() {
            CacheOperationStack stack = stackForThread.get();
            return stack != null && stack.isInCacheAction();
        }
    
        private CacheOperationStack getOrCreateStack() {
            CacheOperationStack stack = stackForThread.get();
            if (stack == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:31 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/cacheops/CacheOperationStack.java

     * limitations under the License.
     */
    
    package org.gradle.cache.internal.cacheops;
    
    class CacheOperationStack {
        private int operationCount;
    
        public boolean isInCacheAction() {
            return operationCount>0;
        }
    
        public CacheOperationStack pushCacheAction() {
            operationCount++;
            return this;
        }
    
        public void popCacheAction() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

        /**
         * Releases ownership of the cache.
         * Must be called while holding the lock.
         */
        private void releaseOwnership() {
            operations.popCacheAction();
            if (!operations.isInCacheAction()) {
                owner = null;
                condition.signalAll();
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top