Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for lock_held_ (0.13 sec)

  1. tensorflow/compiler/jit/variable_info.cc

          var_(other.var_),
          definition_stack_trace_(other.definition_stack_trace_),
          lock_held_(other.lock_held_) {
      other.index_ = -1;
      other.var_ = nullptr;
    }
    
    VariableInfo& VariableInfo::operator=(VariableInfo&& other) {
      index_ = other.index_;
      var_ = other.var_;
      lock_held_ = other.lock_held_;
      definition_stack_trace_ = other.definition_stack_trace_;
    
      other.index_ = -1;
      other.var_ = nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/variable_info.h

      // Returns the variable name.
      absl::string_view name() const { return name_; }
    
      // Returns true if the resource variable lock was successfully acquired by
      // this thread.
      bool lock_held() const { return lock_held_; }
      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_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 14 21:57:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/lockrank_on.go

    	systemstack(func() {
    		i := gp.m.locksHeldLen
    		if i >= len(gp.m.locksHeld) {
    			throw("too many locks held concurrently for rank checking")
    		}
    		gp.m.locksHeld[i].rank = rank
    		gp.m.locksHeld[i].lockAddr = uintptr(unsafe.Pointer(l))
    		gp.m.locksHeldLen++
    
    		// i is the index of the lock being acquired
    		if i > 0 {
    			checkRanks(gp, gp.m.locksHeld[i-1].rank, rank)
    		}
    		lock2(l)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. internal/dsync/dsync-server_test.go

    		time.Sleep(time.Duration(d))
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	var locksHeld int64
    	if locksHeld, reply = l.lockMap[args.Resources[0]]; !reply { // No lock is held on the given name
    		return false, fmt.Errorf("Unlock attempted on an unlocked entity: %s", args.Resources[0])
    	}
    	if reply = locksHeld == WriteLock; !reply { // Unless it is a write lock
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. cmd/admin-handlers_test.go

    			UID:    mustGetUUID(),
    			Owner:  owners[i%len(owners)],
    			Quorum: 2,
    		}
    		lris = append(lris, lri)
    		locksHeld[resource] = append(locksHeld[resource], lri)
    		// concurrent read lock, same resource different uid
    		lri.UID = mustGetUUID()
    		lris = append(lris, lri)
    		locksHeld[resource] = append(locksHeld[resource], lri)
    	}
    
    	var peerLocks []*PeerLocks
    	for _, owner := range owners {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. tensorflow/c/kernels_experimental.cc

                         TF_Tensor* dest),
        tensorflow::Var* var, bool lock_held = false) {
      auto* context = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
      if (var->copy_on_read_mode.load()) {
        return absl::OkStatus();
      }
    
      std::optional<mutex_lock> ml;
      if (!lock_held) {
        ml.emplace(*var->mu());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/variable_info_util.cc

        absl::Span<VariableInfo const> variable_args,
        absl::flat_hash_map<int, const VariableInfo*>& variable_info_lookup) {
      for (const VariableInfo& info : variable_args) {
        if (!(!info.var() || info.lock_held() || info.shared_lock_held())) {
          return errors::Internal(
              "Need to hold the lock on resource variables "
              "before calling BuildXlaCompilerArguments");
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/kernels_experimental.h

    // and `dest` tensors and is responsible for freeing them with TF_DeleteTensor.
    TF_CAPI_EXPORT extern void TF_GetInputTensorFromVariable(
        TF_OpKernelContext* ctx, int input, bool lock_held, bool isVariantType,
        bool sparse,
        void (*copyFunc)(TF_OpKernelContext* ctx, TF_Tensor* source,
                         TF_Tensor* dest),
        TF_Tensor** out, TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 07 14:44:39 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/get_compiler_ir.cc

      TF_RETURN_IF_ERROR(
          CreateVariableInfoLookup(variable_args, variable_info_lookup));
    
      for (const VariableInfo& info : variable_args) {
        TF_RET_CHECK(!info.var() || info.lock_held() || info.shared_lock_held())
            << "Need to hold the lock on resource variables "
               "before calling BuildXlaCompilerArguments";
        variable_info_lookup.emplace(info.index(), &info);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. src/runtime/proc.go

    	mp := acquirem()
    	if !lockheld {
    		lock(&sched.lock)
    	}
    	if pp == nil {
    		if spinning {
    			// TODO(prattmic): All remaining calls to this function
    			// with _p_ == nil could be cleaned up to find a P
    			// before calling startm.
    			throw("startm: P required for spinning=true")
    		}
    		pp, _ = pidleget(0)
    		if pp == nil {
    			if !lockheld {
    				unlock(&sched.lock)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top