Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 553 for block (0.14 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      EXPECT_FALSE(second_block);
      EXPECT_EQ(out.size(), file_size - block_size);
    }
    
    TEST(RamFileBlockCacheTest, Inconsistent) {
      // Tests the detection of interrupted reads leading to partially filled blocks
      // where we expected complete blocks.
      const size_t block_size = 16;
      // This fetcher returns OK but only fills in one byte for any offset.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  2. cmd/namespace-lock.go

    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(lc.ctx)
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. cmd/erasure-utils.go

    	// Counter to increment total written.
    	var totalWritten int64
    
    	// Write all data blocks to dst.
    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    		// Skip until offset.
    		block = block[offset:]
    
    		// Reset the offset for next iteration to read everything
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                block()
            }
    
        internal
        fun checkBinaryCompatibleJava(v1: String = "", v2: String, block: CheckResult.() -> Unit = {}): CheckResult =
            runJavaBinaryCompatibilityCheck(v1, v2) {
                assertBinaryCompatible()
                block()
            }
    
        internal
        fun checkNotBinaryCompatibleJava(v1: String = "", v2: String, block: CheckResult.() -> Unit = {}): CheckResult =
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  5. src/archive/tar/format.go

    // nearest block edge where 0 <= n < blockSize.
    func blockPadding(offset int64) (n int64) {
    	return -offset & (blockSize - 1)
    }
    
    var zeroBlock block
    
    type block [blockSize]byte
    
    // Convert block to any number of formats.
    func (b *block) toV7() *headerV7       { return (*headerV7)(b) }
    func (b *block) toGNU() *headerGNU     { return (*headerGNU)(b) }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

       */
      fun schedule(
        name: String,
        delayNanos: Long = 0L,
        block: () -> Long,
      ) {
        schedule(
          object : Task(name) {
            override fun runOnce(): Long {
              return block()
            }
          },
          delayNanos,
        )
      }
    
      /**
       * Executes [block] once on a task runner thread.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

         * two.
         *
         * Whether an expression is used is defined by the context in which it
         * appears. E.g. a "statement" in a block is considered used if it is the
         * last expression in that block AND the block itself is used -- a
         * recursive call to `isUsed`, one level higher in the syntax tree.
         *
         * The methods are _conservative_, erring on the side of answering `true`.
         */
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Feb 12 20:38:23 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  8. docs/en/docs/css/custom.css

    .termynal-comment {
      color: #4a968f;
      font-style: italic;
      display: block;
    }
    
    .termy {
      /* For right to left languages */
      direction: ltr;
    }
    
    .termy [data-termynal] {
      white-space: pre-wrap;
    }
    
    a.external-link {
      /* For right to left languages */
      direction: ltr;
      display: inline-block;
    }
    
    a.external-link::after {
      /* \00A0 is a non-breaking space
    CSS
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jan 28 09:53:45 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. docs/contribute/concurrency.md

    ### Locks
    
    We have 3 different things that we synchronize on.
    
    #### Http2Connection
    
    This lock guards internal state of each connection. This lock is never held for blocking operations. That means that we acquire the lock, read or write a few fields and release the lock. No I/O and no application-layer callbacks.
    
    #### Http2Stream
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    	return paxHdrs, nil
    }
    
    // readHeader reads the next block header and assumes that the underlying reader
    // is already aligned to a block boundary. It returns the raw block of the
    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    //   - Exactly 1 block of zeros is read and EOF is hit.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top