Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 783 for mutex_ (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/print.cc

     private:
      llvm::sys::SmartMutex<true> mutex_;
      raw_ostream* os_;
    };
    
    PrintPass::PrintPass(raw_ostream* os) {
      if (os) {
        os_ = os;
      } else {
        os_ = &llvm::errs();
      }
    }
    
    PrintPass::PrintPass(const PrintPass& other) : PrintPass(other.os_) {}
    
    void PrintPass::runOnOperation() {
      llvm::sys::SmartScopedLock<true> instrumentationLock(mutex_);
      OpPrintingFlags flags =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 23:15:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    # define GTEST_DEFINE_STATIC_MUTEX_(mutex) \
        ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false }
    
    // The Mutex class can only be used for mutexes created at runtime. It
    // shares its API with MutexBase otherwise.
    class Mutex : public MutexBase {
     public:
      Mutex() {
        GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL));
        has_owner_ = false;
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 67.2K bytes
    - Viewed (0)
  3. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    # define GTEST_DEFINE_STATIC_MUTEX_(mutex) \
        ::testing::internal::MutexBase mutex = { PTHREAD_MUTEX_INITIALIZER, false }
    
    // The Mutex class can only be used for mutexes created at runtime. It
    // shares its API with MutexBase otherwise.
    class Mutex : public MutexBase {
     public:
      Mutex() {
        GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_init(&mutex_, NULL));
        has_owner_ = false;
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/kernels/xla_ops.cc

        static ExecutableClosureStore* instance = new ExecutableClosureStore;
        return instance;
      }
    
     private:
      mutex mutex_;
      int64_t key_counter_ TF_GUARDED_BY(mutex_);
      absl::flat_hash_map<KeyT, ExecutableClosure<ExecutableType, ClientType>>
          closures_ TF_GUARDED_BY(mutex_);
    
      ExecutableClosureStore(const ExecutableClosureStore&) = delete;
      void operator=(const ExecutableClosureStore&) = delete;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

      void PushGTestTrace(const internal::TraceInfo& trace)
          GTEST_LOCK_EXCLUDED_(mutex_);
    
      // Pops a trace from the per-thread Google Test trace stack.
      void PopGTestTrace()
          GTEST_LOCK_EXCLUDED_(mutex_);
    
      // Protects mutable state in *impl_.  This is mutable as some const
      // methods need to lock it too.
      mutable internal::Mutex mutex_;
    
      // Opaque implementation object.  This field is never changed once
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

      void PushGTestTrace(const internal::TraceInfo& trace)
          GTEST_LOCK_EXCLUDED_(mutex_);
    
      // Pops a trace from the per-thread Google Test trace stack.
      void PopGTestTrace()
          GTEST_LOCK_EXCLUDED_(mutex_);
    
      // Protects mutable state in *impl_.  This is mutable as some const
      // methods need to lock it too.
      mutable internal::Mutex mutex_;
    
      // Opaque implementation object.  This field is never changed once
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/mutex.go

    }
    
    // MutexAt returns a new Mutex with Path set to the given non-empty path.
    func MutexAt(path string) *Mutex {
    	if path == "" {
    		panic("lockedfile.MutexAt: path must be non-empty")
    	}
    	return &Mutex{Path: path}
    }
    
    func (mu *Mutex) String() string {
    	return fmt.Sprintf("lockedfile.Mutex(%s)", mu.Path)
    }
    
    // Lock attempts to lock the Mutex.
    //
    // If successful, Lock returns a non-nil unlock function: it is provided as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 17:17:40 UTC 2019
    - 2.3K bytes
    - Viewed (0)
  8. src/sync/mutex.go

    func throw(string)
    func fatal(string)
    
    // A Mutex is a mutual exclusion lock.
    // The zero value for a Mutex is an unlocked mutex.
    //
    // A Mutex must not be copied after first use.
    //
    // In the terminology of [the Go memory model],
    // the n'th call to [Mutex.Unlock] “synchronizes before” the m'th call to [Mutex.Lock]
    // for any n < m.
    // A successful call to [Mutex.TryLock] is equivalent to a call to Lock.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. tensorflow/c/kernels_experimental.cc

      std::vector<tensorflow::mutex*> mutexes;
      std::vector<int32_t> acquire_order;
      for (auto input : input_ids) {
        tensorflow::Var* var;
        tensorflow::mutex* mutex = GetTrainingVariableMutex(ctx, input, &var);
        if (var) vars.push_back(var);
        // Only lock each mutex once if duplicates exist (n^2 but n is 2 or 3).
        if (std::find(mutexes.begin(), mutexes.end(), mutex) == mutexes.end()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. cmd/bucket-targets.go

    func (sys *BucketTargetSys) isOffline(ep *url.URL) bool {
    	sys.hMutex.RLock()
    	defer sys.hMutex.RUnlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		return !h.Online
    	}
    	go sys.initHC(ep)
    	return false
    }
    
    // markOffline sets endpoint to offline if network i/o timeout seen.
    func (sys *BucketTargetSys) markOffline(ep *url.URL) {
    	sys.hMutex.Lock()
    	defer sys.hMutex.Unlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:09:56 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top