Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for guard_ (0.12 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

       * [TaskRunner.lock].
       */
      var isParallel = false
    
      /** Number of calls to [TaskRunner.Backend.execute]. Guarded by [TaskRunner.lock]. */
      var executeCallCount = 0
    
      /** Guarded by [taskRunner]. */
      var nanoTime = 0L
        private set
    
      /** Backlog of tasks to run. Only one task runs at a time. Guarded by [TaskRunner.lock]. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/platform/PlatformTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    class PlatformTest {
      @RegisterExtension
      var platform = PlatformRule()
    
      @Test
      fun alwaysBuilds() {
        Platform()
      }
    
      /** Guard against the default value changing by accident.  */
      @Test
      fun defaultPrefix() {
        assertThat(Platform().getPrefix()).isEqualTo("OkHttp")
      }
    
      @Test
      fun testToStringIsClassname() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

        segment = cache.segments[0];
        chain = null;
        for (int i = 0; i < length; i++) {
          Object key = new Object();
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

      var upstream: Source?,
      /** The number of bytes consumed from [upstream]. Guarded by this. */
      var upstreamPos: Long,
      /** User-supplied additional data persisted with the source data. */
      private val metadata: ByteString,
      /** The maximum size of [buffer]. */
      val bufferMaxSize: Long,
    ) {
      /** The thread that currently has access to upstream. Possibly null. Guarded by this. */
      var upstreamReader: Thread? = null
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

        segment = cache.segments[0];
        chain = null;
        for (int i = 0; i < length; i++) {
          Object key = new Object();
          // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently
          // held
          chain = segment.newEntry(key, cache.hash(key), chain);
          if (i == 0) {
            head = chain;
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/Parameter.java

       * compatibility problems on Android VMs. The corresponding accessor method, however, can have the
       * more specific return type as long as users are careful to guard calls to it with version checks
       * or reflection: Android VMs ignore the types of elements that aren't used.
       */
      private final @Nullable Object annotatedType;
    
      Parameter(
          Invokable<?, ?> declaration,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

         *     {@code original.getKey()}.
         */
        // Guarded By Segment.this
        <K, V> ReferenceEntry<K, V> copyEntry(
            Segment<K, V> segment, ReferenceEntry<K, V> original, ReferenceEntry<K, V> newNext, K key) {
          return newEntry(segment, key, original.getHash(), newNext);
        }
    
        // Guarded By Segment.this
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *}
    
    ## `TrustedHostMiddleware`
    
    Enforces that all incoming requests have a correctly set `Host` header, in order to guard against HTTP Host Header attacks.
    
    {* ../../docs_src/advanced_middleware/tutorial002.py hl[2,6:8] *}
    
    The following arguments are supported:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:45:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

         * which it is guaranteed that it can never become healthy.
         */
        final Monitor.Guard awaitHealthGuard = new AwaitHealthGuard();
    
        @WeakOuter
        final class AwaitHealthGuard extends Monitor.Guard {
          AwaitHealthGuard() {
            super(ServiceManagerState.this.monitor);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ServiceManager.java

         * which it is guaranteed that it can never become healthy.
         */
        final Monitor.Guard awaitHealthGuard = new AwaitHealthGuard();
    
        @WeakOuter
        final class AwaitHealthGuard extends Monitor.Guard {
          AwaitHealthGuard() {
            super(ServiceManagerState.this.monitor);
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top