Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 83 for threadLocal (0.3 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

    /**
     * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such
     * cookies are on the fast path.
     */
    private val STANDARD_DATE_FORMAT =
      object : ThreadLocal<DateFormat>() {
        override fun initialValue(): DateFormat {
          // Date format specified by RFC 7231 section 7.1.1.1.
          return SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US).apply {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                + "^\\s*data:|" //
                + "^\\s*android-app:|" //
                + "^\\s*ios-app:|" //
                + "^\\s*callto:", Pattern.CASE_INSENSITIVE);
    
        private final ThreadLocal<XPathAPI> xpathAPI = new ThreadLocal<>();
    
        @Override
        public ResultData transform(final ResponseData responseData) {
            if (responseData == null || !responseData.hasResponseBody()) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       */
      // This is logically a Set, but an ArrayList is used to minimize the amount
      // of allocation done on lock()/unlock().
      private static final ThreadLocal<ArrayList<LockGraphNode>> acquiredLocks =
          new ThreadLocal<ArrayList<LockGraphNode>>() {
            @Override
            protected ArrayList<LockGraphNode> initialValue() {
              return Lists.<LockGraphNode>newArrayListWithCapacity(3);
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

       */
      // This is logically a Set, but an ArrayList is used to minimize the amount
      // of allocation done on lock()/unlock().
      private static final ThreadLocal<ArrayList<LockGraphNode>> acquiredLocks =
          new ThreadLocal<ArrayList<LockGraphNode>>() {
            @Override
            protected ArrayList<LockGraphNode> initialValue() {
              return Lists.<LockGraphNode>newArrayListWithCapacity(3);
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

        private final Map<Integer, ClockTickImpl> ticks = new HashMap<Integer, ClockTickImpl>();
        private ClockTickImpl currentTick = getTick(0);
        private boolean stopped;
        private final ThreadLocal<Matcher<? extends Throwable>> expectedFailure
                = new ThreadLocal<Matcher<? extends Throwable>>();
        private final SyncPoint syncPoint = new SyncPoint();
    
        /**
         * Creates an Executor which the test can control.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  8. 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)
  9. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

    public abstract class AbstractTask implements TaskInternal, DynamicObjectAware {
        private static final Logger BUILD_LOGGER = Logging.getLogger(Task.class);
        private static final ThreadLocal<TaskInfo> NEXT_INSTANCE = new ThreadLocal<TaskInfo>();
    
        private final TaskIdentity<?> identity;
    
        private final ProjectInternal project;
    
        private List<InputChangesAwareTaskAction> actions;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  10. 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)
Back to top