Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lock_shared (0.37 sec)

  1. 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();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/variable_info.cc

      // released even on error.  It does not matter in what order we release the
      // locks.
      if (var()) {
        if (lock_held()) {
          var()->mu()->unlock();
        }
        if (shared_lock_held()) {
          var()->mu()->unlock_shared();
        }
    
        // Unref the variable so it can be released by ResourceManager.
        var()->Unref();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top