Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Brunet (0.19 sec)

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

      TF_EXPECT_OK(ReadCache(&cache, "b", 0, 1, &out));
      EXPECT_EQ(calls, 3);
      // Advance the fake time to `now` + 3, at which point "b" becomes stale.
      env->SetNowSeconds(now + 3);
      // Wait for the pruner to remove "b".
      start = Env::Default()->NowSeconds();
      do {
        Env::Default()->SleepForMicroseconds(100000);
      } while (cache.CacheSize() == 8 && Env::Default()->NowSeconds() - start < 3);
    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

      }
      file_signature_map_[filename] = file_signature;
      return true;
    }
    
    size_t RamFileBlockCache::CacheSize() const {
      absl::MutexLock lock(&mu_);
      return cache_size_;
    }
    
    void RamFileBlockCache::Prune() {
      while (!stop_pruning_thread_.WaitForNotificationWithTimeout(
          absl::Microseconds(1000000))) {
        absl::MutexLock lock(&mu_);
        uint64_t now = timer_seconds_();
        while (!lra_list_.empty()) {
    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