Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for threadLocal (0.14 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseException.java

            inputStream.defaultReadObject();
            hideCause = threadLocal();
        }
    
        private void writeObject(java.io.ObjectOutputStream out) throws IOException {
            // Ensure fields are initialized before serialization
            String ignored = getMessage();
            out.defaultWriteObject();
        }
    
        private ThreadLocal<Boolean> threadLocal() {
            return new HideStacktrace();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/InputTrackingState.kt

            --inputTrackingDisabledCounterForThread
        }
    }
    
    
    private
    operator fun <T> ThreadLocal<T>.getValue(thisRef: Any?, property: KProperty<*>) = get()
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

            private final Map<Key<?>, Provider<?>> seeded = new HashMap<>();
    
            private final Map<Key<?>, Object> provided = new HashMap<>();
        }
    
        private final ThreadLocal<LinkedList<ScopeState>> values = new ThreadLocal<>();
    
        public MojoExecutionScope() {}
    
        public void enter() {
            LinkedList<ScopeState> stack = values.get();
            if (stack == null) {
                stack = new LinkedList<>();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformErrorHandler.java

     * <p>
     * This class is thread-safe, though it only tracks pending exceptions per-thread.
     */
    public class TransformErrorHandler {
        @SuppressWarnings("ThreadLocalUsage")
        private final ThreadLocal<ClassNotFoundException> lastError = new ThreadLocal<ClassNotFoundException>();
        private final String classLoaderName;
    
        public TransformErrorHandler(String classLoaderName) {
            this.classLoaderName = classLoaderName;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/AbstractFunctionalTypeTest.kt

            Runtime.value = "after"
            assertThat(
                extract(value),
                equalTo("before")
            )
        }
    
        object Runtime {
            private
            val local = ThreadLocal<Any?>()
    
            var value: Any?
                get() = local.get()
                set(value) = local.set(value)
        }
    
        data class BeanOf<T>(val value: T)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Striped64.java

          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Striped64.java

          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Striped64.java

          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/Striped64.java

          }
        }
      }
    
      /**
       * ThreadLocal holding a single-slot int array holding hash code. Unlike the JDK8 version of this
       * class, we use a suboptimal int[] representation to avoid introducing a new type that can impede
       * class-unloading when ThreadLocals are not removed.
       */
      static final ThreadLocal<int @Nullable []> threadHashCode = new ThreadLocal<>();
    
      /** Generator of new random hash codes */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DynamicCallProblemReporting.kt

            val problemsReportedInCurrentCall: MutableSet<Any> = HashSet(1)
        }
    
        private
        class State {
            val callStack = Stack<CallEntry>()
        }
    
        private
        val threadLocalState = ThreadLocal.withInitial { State() }
    
        override fun enterDynamicCall(entryPoint: Any) {
            currentThreadState.callStack.push(CallEntry(entryPoint))
        }
    
        override fun leaveDynamicCall(entryPoint: Any) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top