Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 83 for threadLocal (0.14 sec)

  1. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

    package com.google.common.escape;
    
    /** @author Jesse Wilson */
    final class Platform {
    
      private static final char[] CHAR_BUFFER = new char[1024];
    
      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LinePerThreadBufferingOutputStream.java

    import java.util.Locale;
    
    public class LinePerThreadBufferingOutputStream extends PrintStream {
        private final TextStream handler;
        @SuppressWarnings("ThreadLocalUsage")
        private final ThreadLocal<PrintStream> stream = new ThreadLocal<PrintStream>();
        private final String lineSeparator = System.getProperty("line.separator");
        public LinePerThreadBufferingOutputStream(TextStream handler) {
            super(NullOutputStream.INSTANCE, true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/permissions/KaBaseWriteActionStartedChecker.kt

     * [analyze][org.jetbrains.kotlin.analysis.api.analyze] call.
     */
    internal class KaBaseWriteActionStartedChecker(parentDisposable: Disposable) {
        private val currentAnalyzeCallDepth = ThreadLocal.withInitial { 0 }
    
        init {
            val listener = object : ApplicationListener {
                override fun writeActionFinished(action: Any) {
                    if (currentAnalyzeCallDepth.get() > 0) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/progress/DefaultProgressLoggerFactory.java

        private final Clock clock;
        private final BuildOperationIdFactory buildOperationIdFactory;
        @SuppressWarnings("ThreadLocalUsage")
        private final ThreadLocal<ProgressLoggerImpl> current = new ThreadLocal<ProgressLoggerImpl>();
        private final CurrentBuildOperationRef currentBuildOperationRef = CurrentBuildOperationRef.instance();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/lifetime/KaBaseLifetimeTracker.kt

    import org.jetbrains.kotlin.analysis.api.platform.lifetime.KaLifetimeTracker
    
    internal class KaBaseLifetimeTracker : KaLifetimeTracker {
        private val lifetimeOwnersStack = ThreadLocal.withInitial<PersistentList<KtLifetimeToken>> { persistentListOf() }
    
        override val currentToken: KtLifetimeToken? get() = lifetimeOwnersStack.get().lastOrNull()
    
        fun beforeEnteringAnalysis(session: KtAnalysisSession) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    // In addition, the default ThreadLocal constructor requires T to have
    // a public default constructor.
    //
    // An object managed for a thread by a ThreadLocal instance is deleted
    // when the thread exits.  Or, if the ThreadLocal instance dies in
    // that thread, when the ThreadLocal dies.  It's the user's
    // responsibility to ensure that all other threads using a ThreadLocal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

       *
       * <p>This class would certainly be simpler and easier to reason about if it were built with
       * ThreadLocal; however, ThreadLocal is not well optimized for the case where the ThreadLocal is
       * non-static, and is initialized/removed frequently - this causes churn in the Thread specific
       * hashmaps. Using a static ThreadLocal to avoid that overhead would mean that different
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top