Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for mutex_lock (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    	`(base::Mutex::)?Unlock.*`,
    	`(base::Mutex::)?UnlockSlow.*`,
    	`(base::Mutex::)?ReaderUnlock.*`,
    	`(base::MutexLock::)?~MutexLock.*`,
    	`(Mutex::)?AwaitCommon.*`,
    	`(Mutex::)?Unlock.*`,
    	`(Mutex::)?UnlockSlow.*`,
    	`(Mutex::)?ReaderUnlock.*`,
    	`(MutexLock::)?~MutexLock.*`,
    	`(SpinLock::)?Unlock.*`,
    	`(SpinLock::)?SlowUnlock.*`,
    	`(SpinLockHolder::)?~SpinLockHolder.*`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

      GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);
    };
    
    // MutexBase and Mutex implement mutex on pthreads-based platforms. They
    // are used in conjunction with class MutexLock:
    //
    //   Mutex mutex;
    //   ...
    //   MutexLock lock(&mutex);  // Acquires the mutex and releases it at the end
    //                            // of the current scope.
    //
    // MutexBase implements behavior for both statically and dynamically
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

      GTEST_DISALLOW_COPY_AND_ASSIGN_(ThreadWithParam);
    };
    
    // MutexBase and Mutex implement mutex on pthreads-based platforms. They
    // are used in conjunction with class MutexLock:
    //
    //   Mutex mutex;
    //   ...
    //   MutexLock lock(&mutex);  // Acquires the mutex and releases it at the end
    //                            // of the current scope.
    //
    // MutexBase implements behavior for both statically and dynamically
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 67.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device_context.cc

                    .IgnoreError();
              }
            }
          });
    }
    
    se::Stream* XlaDeviceContext::GetDeviceToDeviceStream() {
      DCHECK_GT(device_to_device_streams_.size(), 0);
      absl::MutexLock lock(&mu_);
      int stream = next_stream_;
      next_stream_ = (next_stream_ + 1) % device_to_device_streams_.size();
      return device_to_device_stream(stream);
    }
    
    Status XlaDeviceContext::ThenExecute(Device* device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      if (gcs_file->is_cache_enable || n > gcs_file->buffer_size) {
        return gcs_file->read_fn(gcs_file->path, offset, n, buffer, status);
      } else {
        absl::MutexLock l(&gcs_file->buffer_mutex);
        size_t buffer_end = gcs_file->buffer_start + gcs_file->buffer.size();
        size_t copy_size = 0;
        if (offset < buffer_end && gcs_file->buffer_start) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 06:55:53 UTC 2023
    - 46.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        mlir::SymbolTable::setSymbolName(func, new_sym_name);
      }
    
      // Copy all functions used by this signature to the final MLIR module.
      for (auto func : sub_module.getOps<mlir::func::FuncOp>()) {
        absl::MutexLock l(&symbol_table_mu_);
        // The insert here is a NO-OP if the function already exists.
        symbol_table_.insert(func.clone());
      }
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top