Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Stale (0.17 sec)

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

      // Advance the fake timestamp so that "a" becomes stale via its first block.
      env->SetNowSeconds(now + 2);
      // The pruning thread periodically compares env->NowSeconds() with the oldest
      // block's timestamp to see if it should evict any files. At the current fake
      // timestamp of `now` + 2, file "a" is stale because its first block is stale,
      // but file "b" is not stale yet. Thus, once the pruning thread wakes up (in
    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. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      absl::MutexLock lock(&mu_);
      auto entry = block_map_.find(key);
      if (entry != block_map_.end()) {
        if (BlockNotStale(entry->second)) {
          return entry->second;
        } else {
          // Remove the stale block and continue.
          RemoveFile_Locked(key.first);
        }
      }
    
      // Insert a new empty block, setting the bookkeeping to sentinel values
      // in order to update them as appropriate.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
Back to top