Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for mutex_lock (0.22 sec)

  1. tensorflow/compiler/jit/variable_info.h

      }
    
      ~VariableInfo();
    
     private:
      int index_;
      std::string name_;
      Var* var_;
      std::optional<ManagedStackTrace> definition_stack_trace_;
    
      // We can't use a optional<mutex_lock> here because it confuses the compiler's
      // thread safety analysis. Instead we use a boolean flag and release the lock
      // in the VariableInfo destructor.
      bool lock_held_ = false;
      bool shared_lock_held_ = false;
    
    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/cc/client/client_session.cc

                              std::vector<Tensor>* outputs) const {
      return Run(RunOptions(), inputs, fetch_outputs, run_outputs, outputs,
                 nullptr);
    }
    
    Status ClientSession::Impl::MaybeExtendGraph() const {
      mutex_lock l(mu_);
      int num_nodes = graph_->num_node_ids();
      if (num_nodes > last_num_graph_nodes_) {
        GraphDef graph_def;
        graph_->ToGraphDefSubRange(&graph_def, last_num_graph_nodes_);
        last_num_graph_nodes_ = num_nodes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/internal/poll/fd_mutex.go

    // 20 bits - total number of references (read+write+misc).
    // 20 bits - number of outstanding read waiters.
    // 20 bits - number of outstanding write waiters.
    const (
    	mutexClosed  = 1 << 0
    	mutexRLock   = 1 << 1
    	mutexWLock   = 1 << 2
    	mutexRef     = 1 << 3
    	mutexRefMask = (1<<20 - 1) << 3
    	mutexRWait   = 1 << 23
    	mutexRMask   = (1<<20 - 1) << 23
    	mutexWWait   = 1 << 43
    	mutexWMask   = (1<<20 - 1) << 43
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 20 16:55:30 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

        if (max_age_ == 0) {
          return;
        }
        absl::MutexLock lock(&mu_);
        InsertLocked(key, value);
      }
    
      // Delete the entry with key `key`. Return true if the entry was found for
      // `key`, false if the entry was not found. In both cases, there is no entry
      // with key `key` existed after the call.
      bool Delete(const std::string& key) {
        absl::MutexLock lock(&mu_);
        return DeleteLocked(key);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 09 19:31:22 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  5. src/runtime/lock_wasip1.go

    // while allowing other goroutines to run.
    
    const (
    	mutex_unlocked = 0
    	mutex_locked   = 1
    
    	active_spin     = 4
    	active_spin_cnt = 30
    )
    
    func mutexContended(l *mutex) bool {
    	return false
    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	if l.key == mutex_locked {
    		// wasm is single-threaded so we should never
    		// observe this.
    		throw("self deadlock")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/runtime/lock_futex.go

    //	futexwakeup(addr *uint32, cnt uint32)
    //		If any procs are sleeping on addr, wake up at most cnt.
    
    const (
    	mutex_unlocked = 0
    	mutex_locked   = 1
    	mutex_sleeping = 2
    
    	active_spin     = 4
    	active_spin_cnt = 30
    	passive_spin    = 1
    )
    
    // Possible lock states are mutex_unlocked, mutex_locked and mutex_sleeping.
    // mutex_sleeping means that there is presumably at least one sleeping thread.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/runtime/lock_js.go

    const (
    	mutex_unlocked = 0
    	mutex_locked   = 1
    
    	note_cleared = 0
    	note_woken   = 1
    	note_timeout = 2
    
    	active_spin     = 4
    	active_spin_cnt = 30
    	passive_spin    = 1
    )
    
    func mutexContended(l *mutex) bool {
    	return false
    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	if l.key == mutex_locked {
    		// js/wasm is single-threaded so we should never
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

      // contention in production code, but is acceptable in a testing
      // framework.
    
      // Join an existing circle.
      void join(linked_ptr_internal const* ptr)
          GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex) {
        MutexLock lock(&g_linked_ptr_mutex);
    
        linked_ptr_internal const* p = ptr;
        while (p->next_ != ptr) p = p->next_;
        p->next_ = this;
        next_ = ptr;
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-linked_ptr.h

      // contention in production code, but is acceptable in a testing
      // framework.
    
      // Join an existing circle.
      void join(linked_ptr_internal const* ptr)
          GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex) {
        MutexLock lock(&g_linked_ptr_mutex);
    
        linked_ptr_internal const* p = ptr;
        while (p->next_ != ptr) p = p->next_;
        p->next_ = this;
        next_ = ptr;
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top