Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for threadLocal (0.15 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

     */
    @ThreadSafe
    public class DeprecationLogger {
    
        /**
         * Counts the levels of nested {@code whileDisabled} invocations.
         */
        private static final ThreadLocal<Integer> DISABLE_COUNT = new ThreadLocal<Integer>() {
            @Override
            protected Integer initialValue() {
                return 0;
            }
        };
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

     *
     * @author Dimitris Andreou
     */
    public class BloomFilterTest extends TestCase {
      private static final int NUM_PUTS = 100_000;
      private static final ThreadLocal<Random> random =
          new ThreadLocal<Random>() {
            @Override
            protected Random initialValue() {
              return new Random();
            }
          };
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

     */
    private
    class ThreadLocalCapturePrintStream(originalOutput: PrintStream) : PrintStream(originalOutput) {
    
        val captureOutput = ByteArrayOutputStream()
    
        private
        var isCapturing: ThreadLocal<Boolean>? = ThreadLocal.withInitial { false }
    
        init {
            isCapturing!!.set(true)
        }
    
        override fun write(buf: ByteArray, off: Int, len: Int) = safely {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

     * and the argument, are compile-time constant as well.
     */
    internal object FirCompileTimeConstantEvaluator {
        private val variablesInProcessOfEvaluation = ThreadLocal.withInitial { mutableSetOf<FirVariableSymbol<*>>() }
    
        private inline fun <R> withTrackingVariableEvaluation(variableSymbol: FirVariableSymbol<*>, f: () -> R): R? {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

            private Object instance;
            private final Class<?> mixInClass;
            private final MethodInvoker next;
            private final ThreadLocal<MethodInvocation> current = new ThreadLocal<>();
    
            ClassMixInMethodInvoker(Class<?> mixInClass, MethodInvoker next) {
                this.mixInClass = mixInClass;
                this.next = next;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

        private
        val sinksForProject = ConcurrentHashMap<Path, ProjectScopedSink>()
    
        private
        val projectForThread = ThreadLocal<ProjectScopedSink>()
    
        private
        val projectDependencies = newConcurrentHashSet<ProjectSpecificFingerprint>()
    
        private
        val undeclaredSystemProperties = newConcurrentHashSet<String>()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

    import static sun.reflect.ReflectionFactory.getReflectionFactory;
    
    public class AsmBackedClassGenerator extends AbstractClassGenerator {
        private static final ThreadLocal<ObjectCreationDetails> SERVICES_FOR_NEXT_OBJECT = new ThreadLocal<>();
        private static final AtomicReference<CrossBuildInMemoryCache<Class<?>, GeneratedClassImpl>> GENERATED_CLASSES_CACHES = new AtomicReference<>();
        private final boolean decorate;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
Back to top