Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for set_shared_lock_held (0.33 sec)

  1. tensorflow/compiler/jit/variable_info.h

      void set_lock_held() { lock_held_ = true; }
    
      // Returns true if the resource variable reader lock was successfully acquired
      // by this thread.
      bool shared_lock_held() const { return shared_lock_held_; }
      void set_shared_lock_held() { shared_lock_held_ = true; }
    
      bool read_only() const { return read_only_; }
      void set_read_only() { read_only_ = true; }
    
      const std::optional<ManagedStackTrace>& definition_stack_trace() const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 14 21:57:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/variable_info_util.cc

        }
        if (variables[i]->read_only()) {
          VLOG(4) << "Acquiring reader lock for variable "
                  << reinterpret_cast<void*>(variable);
          mu->lock_shared();
          variables[i]->set_shared_lock_held();
        } else {
          VLOG(4) << "Acquiring lock for variable "
                  << reinterpret_cast<void*>(variable);
          mu->lock();
          variables[i]->set_lock_held();
        }
        prev = mu;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top