Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isInCacheAction (0.17 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)
Back to top