/third_party/grpc/src/core/lib/gpr/ |
D | sync_windows.cc | 30 void gpr_mu_init(gpr_mu* mu) { in gpr_mu_init() argument 31 InitializeCriticalSection(&mu->cs); in gpr_mu_init() 32 mu->locked = 0; in gpr_mu_init() 35 void gpr_mu_destroy(gpr_mu* mu) { DeleteCriticalSection(&mu->cs); } in gpr_mu_destroy() argument 37 void gpr_mu_lock(gpr_mu* mu) { in gpr_mu_lock() argument 38 EnterCriticalSection(&mu->cs); in gpr_mu_lock() 39 GPR_ASSERT(!mu->locked); in gpr_mu_lock() 40 mu->locked = 1; in gpr_mu_lock() 43 void gpr_mu_unlock(gpr_mu* mu) { in gpr_mu_unlock() argument 44 mu->locked = 0; in gpr_mu_unlock() [all …]
|
D | sync_posix.cc | 40 void gpr_mu_init(gpr_mu* mu) { in gpr_mu_init() argument 42 GPR_ASSERT(pthread_mutex_init(&mu->mutex, nullptr) == 0); in gpr_mu_init() 43 mu->leak_checker = static_cast<int*>(malloc(sizeof(*mu->leak_checker))); in gpr_mu_init() 44 GPR_ASSERT(mu->leak_checker != nullptr); in gpr_mu_init() 46 GPR_ASSERT(pthread_mutex_init(mu, nullptr) == 0); in gpr_mu_init() 50 void gpr_mu_destroy(gpr_mu* mu) { in gpr_mu_destroy() argument 52 GPR_ASSERT(pthread_mutex_destroy(&mu->mutex) == 0); in gpr_mu_destroy() 53 free(mu->leak_checker); in gpr_mu_destroy() 55 GPR_ASSERT(pthread_mutex_destroy(mu) == 0); in gpr_mu_destroy() 59 void gpr_mu_lock(gpr_mu* mu) { in gpr_mu_lock() argument [all …]
|
D | sync_abseil.cc | 43 void gpr_mu_init(gpr_mu* mu) { in gpr_mu_init() argument 46 new (mu) absl::Mutex; in gpr_mu_init() 49 void gpr_mu_destroy(gpr_mu* mu) { in gpr_mu_destroy() argument 50 reinterpret_cast<absl::Mutex*>(mu)->~Mutex(); in gpr_mu_destroy() 53 void gpr_mu_lock(gpr_mu* mu) ABSL_NO_THREAD_SAFETY_ANALYSIS { in gpr_mu_lock() argument 55 reinterpret_cast<absl::Mutex*>(mu)->Lock(); in gpr_mu_lock() 58 void gpr_mu_unlock(gpr_mu* mu) ABSL_NO_THREAD_SAFETY_ANALYSIS { in gpr_mu_unlock() argument 60 reinterpret_cast<absl::Mutex*>(mu)->Unlock(); in gpr_mu_unlock() 63 int gpr_mu_trylock(gpr_mu* mu) { in gpr_mu_trylock() argument 65 int ret = reinterpret_cast<absl::Mutex*>(mu)->TryLock() == true; in gpr_mu_trylock() [all …]
|
/third_party/abseil-cpp/absl/synchronization/ |
D | mutex_test.cc | 72 absl::Mutex mu; member 95 absl::MutexLock l(&cxt->mu); in TestMu() 106 } while (!cxt->mu.TryLock()); in TestTry() 110 cxt->mu.Unlock(); in TestTry() 116 absl::ReaderMutexLock l(&cxt->mu); in TestR20ms() 118 cxt->mu.AssertReaderHeld(); in TestR20ms() 125 absl::WriterMutexLock l(&cxt->mu); in TestRW() 128 cxt->mu.AssertHeld(); in TestRW() 129 cxt->mu.AssertReaderHeld(); in TestRW() 133 absl::ReaderMutexLock l(&cxt->mu); in TestRW() [all …]
|
D | mutex_benchmark.cc | 30 static absl::Mutex* mu = new absl::Mutex; in BM_Mutex() local 32 absl::MutexLock lock(mu); in BM_Mutex() 49 explicit RaiiLocker(MutexType* mu) : mu_(mu) { mu_->Lock(); } in RaiiLocker() argument 58 explicit RaiiLocker(std::mutex* mu) : mu_(mu) { mu_->lock(); } in RaiiLocker() argument 67 MutexType mu; in BM_Contended() member 84 RaiiLocker<MutexType> locker(&shared->mu); in BM_Contended() 189 absl::Mutex mu; in BM_ConditionWaiters() local 199 Helper::Waiter(&init, &mu, &equivalence_classes[i % num_classes]); in BM_ConditionWaiters() 205 mu.Lock(); in BM_ConditionWaiters() 206 mu.Unlock(); // Each unlock requires Condition evaluation for our waiters. in BM_ConditionWaiters() [all …]
|
/third_party/grpc/test/core/iomgr/ |
D | pollset_windows_starvation_test.cc | 39 gpr_mu mu; member 66 gpr_mu_init(¶ms.mu); in main() 75 gpr_mu* mu; in main() local 77 grpc_pollset_init(&pollset, &mu); in main() 84 gpr_mu_lock(mu); in main() 86 gpr_mu_lock(&tparams->mu); in main() 87 tparams->pollset_mu[tparams->queuing] = mu; in main() 90 gpr_mu_unlock(&tparams->mu); in main() 98 gpr_mu_unlock(mu); in main() 100 gpr_mu_lock(&tparams->mu); in main() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
D | mutex_test.cc | 72 absl::Mutex mu; member 95 absl::MutexLock l(&cxt->mu); in TestMu() 106 } while (!cxt->mu.TryLock()); in TestTry() 110 cxt->mu.Unlock(); in TestTry() 116 absl::ReaderMutexLock l(&cxt->mu); in TestR20ms() 118 cxt->mu.AssertReaderHeld(); in TestR20ms() 125 absl::WriterMutexLock l(&cxt->mu); in TestRW() 128 cxt->mu.AssertHeld(); in TestRW() 129 cxt->mu.AssertReaderHeld(); in TestRW() 133 absl::ReaderMutexLock l(&cxt->mu); in TestRW() [all …]
|
D | mutex.h | 460 static void IncrementSynchSem(Mutex *mu, base_internal::PerThreadSynch *w); 461 static bool DecrementSynchSem(Mutex *mu, base_internal::PerThreadSynch *w, 525 explicit MutexLock(Mutex *mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { in MutexLock() argument 532 explicit MutexLock(Mutex *mu, const Condition &cond) in MutexLock() argument 533 ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) in MutexLock() 534 : mu_(mu) { in MutexLock() 555 explicit ReaderMutexLock(Mutex *mu) ABSL_SHARED_LOCK_FUNCTION(mu) : mu_(mu) { in ReaderMutexLock() argument 556 mu->ReaderLock(); in ReaderMutexLock() 559 explicit ReaderMutexLock(Mutex *mu, const Condition &cond) in ReaderMutexLock() argument 560 ABSL_SHARED_LOCK_FUNCTION(mu) in ReaderMutexLock() [all …]
|
/third_party/grpc/src/core/lib/gprpp/ |
D | sync.h | 87 explicit MutexLock(Mutex* mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : mu_(mu) { 101 explicit ReleasableMutexLock(Mutex* mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) 102 : mu_(mu) { 134 void Wait(Mutex* mu) { WaitWithDeadline(mu, absl::InfiniteFuture()); } 135 bool WaitWithTimeout(Mutex* mu, absl::Duration timeout) { 136 return gpr_cv_wait(&cv_, &mu->mu_, ToGprTimeSpec(timeout)) != 0; 138 bool WaitWithDeadline(Mutex* mu, absl::Time deadline) { 139 return gpr_cv_wait(&cv_, &mu->mu_, ToGprTimeSpec(deadline)) != 0; 149 static void WaitUntil(CondVar* cv, Mutex* mu, Predicate pred) { in WaitUntil() argument 151 cv->Wait(mu); in WaitUntil() [all …]
|
/third_party/boost/boost/math/special_functions/detail/ |
D | bessel_jy_asym.hpp | 30 T mu = 4 * v * v; in asymptotic_bessel_amplitude() local 34 s += (mu - 1) / (2 * txq); in asymptotic_bessel_amplitude() 35 s += 3 * (mu - 1) * (mu - 9) / (txq * txq * 8); in asymptotic_bessel_amplitude() 36 s += 15 * (mu - 1) * (mu - 9) * (mu - 25) / (txq * txq * txq * 8 * 6); in asymptotic_bessel_amplitude() 50 T mu = 4 * v * v; in asymptotic_bessel_phase_mx() local 55 s += (mu - 1) / (2 * denom); in asymptotic_bessel_phase_mx() 57 s += (mu - 1) * (mu - 25) / (6 * denom); in asymptotic_bessel_phase_mx() 59 s += (mu - 1) * (mu * mu - 114 * mu + 1073) / (5 * denom); in asymptotic_bessel_phase_mx() 61 s += (mu - 1) * (5 * mu * mu * mu - 1535 * mu * mu + 54703 * mu - 375733) / (14 * denom); in asymptotic_bessel_phase_mx() 196 T mu = 4 * v * v; in asymptotic_bessel_i_large_x() local [all …]
|
/third_party/gettext/gettext-tools/tests/ |
D | msgunfmt-java-1 | 20 test -d mu-java-1 || mkdir mu-java-1 22 cat <<\EOF > mu-java-1/fr.po 54 ${MSGFMT} -j -d mu-java-1 -r prog -l fr mu-java-1/fr.po || Exit 1 57 CLASSPATH=mu-java-1${CLASSPATH:+:$CLASSPATH} \ 59 ${MSGUNFMT} --java -d mu-java-1 -r prog -l fr -o mu-java-1/prog.out || Exit 1 62 ${MSGCAT} -s -o mu-java-1/prog.sort mu-java-1/prog.out || Exit 1 64 cat <<\EOF > mu-java-1/prog.ok 89 ${DIFF} mu-java-1/prog.ok mu-java-1/prog.sort || Exit 1
|
D | msgunfmt-tcl-1 | 15 cat <<\EOF > mu-tcl-1-version.tcl 19 (tclsh mu-tcl-1-version.tcl) >/dev/null 2>/dev/null \ 24 cat <<\EOF > mu-tcl-1-fr.po 39 test -d mu-tcl-1-msgs || mkdir mu-tcl-1-msgs 42 ${MSGFMT} --tcl -d mu-tcl-1-msgs -l fr mu-tcl-1-fr.po || Exit 1 46 ${MSGUNFMT} --tcl -d mu-tcl-1-msgs -l fr -o mu-tcl-1-prog.out || Exit 1 48 cat <<\EOF > mu-tcl-1-prog.ok 59 ${DIFF} mu-tcl-1-prog.ok mu-tcl-1-prog.out || Exit 1
|
D | msgunfmt-csharp-1 | 20 test -d mu-cs-1 || mkdir mu-cs-1 22 cat <<\EOF > mu-cs-1/fr.po 55 ${MSGFMT} --csharp -d mu-cs-1 -r prog -l fr mu-cs-1/fr.po || Exit 1 60 ${MSGUNFMT} --csharp -d mu-cs-1 -r prog -l fr -o mu-cs-1/prog.out || Exit 1 63 ${MSGCAT} -s -o mu-cs-1/prog.sort mu-cs-1/prog.out || Exit 1 65 cat <<\EOF > mu-cs-1/prog.ok 90 ${DIFF} mu-cs-1/prog.ok mu-cs-1/prog.sort || Exit 1
|
D | msgunfmt-2 | 9 cat <<EOF > mu-2.in 16 ${MSGFMT} -o mu-2.mo mu-2.in || Exit 1 19 ${MSGUNFMT} -o mu-2.tmp mu-2.mo || Exit 1 20 LC_ALL=C tr -d '\r' < mu-2.tmp > mu-2.out || Exit 1 23 ${DIFF} mu-2.in mu-2.out
|
D | msgunfmt-properties-1 | 6 cat <<EOF > mu-p-1.in 25 ${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in || Exit 1 28 ${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo || Exit 1 29 LC_ALL=C tr -d '\r' < mu-p-1.tmp > mu-p-1.out || Exit 1 32 ${DIFF} mu-p-1.in mu-p-1.out
|
D | msgunfmt-1 | 6 cat <<EOF > mu-test1.in 33 ${MSGFMT} -o mu-test1.mo mu-test1.in || Exit 1 36 ${MSGUNFMT} -o mu-test1.tmp mu-test1.mo || Exit 1 37 LC_ALL=C tr -d '\r' < mu-test1.tmp > mu-test1.out || Exit 1 40 ${DIFF} mu-test1.in mu-test1.out
|
/third_party/grpc/test/core/gpr/ |
D | sync_test.cc | 43 gpr_mu mu; /* Protects all fields below. member 54 gpr_mu_init(&q->mu); in queue_init() 63 gpr_mu_destroy(&q->mu); in queue_destroy() 70 gpr_mu_lock(&q->mu); in queue_append() 79 gpr_cv_wait(&q->non_full, &q->mu, gpr_inf_future(GPR_CLOCK_MONOTONIC)); in queue_append() 88 gpr_mu_unlock(&q->mu); in queue_append() 95 if (gpr_mu_trylock(&q->mu)) { in queue_try_append() 104 gpr_mu_unlock(&q->mu); in queue_try_append() 114 gpr_mu_lock(&q->mu); in queue_remove() 120 while (q->length == 0 && !gpr_cv_wait(&q->non_empty, &q->mu, abs_deadline)) { in queue_remove() [all …]
|
/third_party/grpc/include/grpc/support/ |
D | sync.h | 39 GPRAPI void gpr_mu_init(gpr_mu* mu); 43 GPRAPI void gpr_mu_destroy(gpr_mu* mu); 48 GPRAPI void gpr_mu_lock(gpr_mu* mu); 52 GPRAPI void gpr_mu_unlock(gpr_mu* mu); 58 GPRAPI int gpr_mu_trylock(gpr_mu* mu); 80 GPRAPI int gpr_cv_wait(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline); 185 gpr_mu mu; /* Protects all fields below. 196 gpr_mu_init(&q->mu); 205 gpr_mu_destroy(&q->mu); 212 gpr_mu_lock(&q->mu); [all …]
|
/third_party/grpc/include/grpcpp/impl/codegen/ |
D | sync.h | 71 explicit MutexLock(Mutex* mu) : mu_(mu->get()) { in MutexLock() argument 74 explicit MutexLock(gpr_mu* mu) : mu_(mu) { in MutexLock() argument 88 explicit ReleasableMutexLock(Mutex* mu) : mu_(mu->get()) { in ReleasableMutexLock() argument 91 explicit ReleasableMutexLock(gpr_mu* mu) : mu_(mu) { in ReleasableMutexLock() argument 129 int Wait(Mutex* mu) { in Wait() argument 130 return Wait(mu, in Wait() 133 int Wait(Mutex* mu, const gpr_timespec& deadline) { in Wait() argument 134 return g_core_codegen_interface->gpr_cv_wait(&cv_, mu->get(), deadline); in Wait() 138 void WaitUntil(Mutex* mu, Predicate pred) { in WaitUntil() argument 140 Wait(mu, g_core_codegen_interface->gpr_inf_future(GPR_CLOCK_REALTIME)); in WaitUntil()
|
/third_party/boost/boost/geometry/formulas/ |
D | meridian_direct.hpp | 128 CT mu = geometry::math::pi<CT>()/CT(2) * m / mp; in apply() local 132 return mu; in apply() 139 return mu + H2 * sin(2*mu); in apply() 147 return mu + H2 * sin(2*mu) + H4 * sin(4*mu); in apply() 156 return mu + H2 * sin(2*mu) + H4 * sin(4*mu) + H6 * sin(6*mu); in apply() 164 return mu + H2 * sin(2*mu) + H4 * sin(4*mu) + H6 * sin(6*mu) + H8 * sin(8*mu); in apply()
|
/third_party/mindspore/tests/ut/python/nn/probability/distribution/ |
D | test_logistic.py | 95 def construct(self, value, mu, s): argument 96 prob = self.logistic.prob(value, mu, s) 97 log_prob = self.logistic.log_prob(value, mu, s) 98 cdf = self.logistic.cdf(value, mu, s) 99 log_cdf = self.logistic.log_cdf(value, mu, s) 100 sf = self.logistic.survival_function(value, mu, s) 101 log_sf = self.logistic.log_survival(value, mu, s) 110 mu = Tensor([0.0], dtype=dtype.float32) 112 ans = net(value, mu, s) 123 def construct(self, mu, s): argument [all …]
|
D | test_cauchy.py | 95 def construct(self, value, mu, s): argument 96 prob = self.cauchy.prob(value, mu, s) 97 log_prob = self.cauchy.log_prob(value, mu, s) 98 cdf = self.cauchy.cdf(value, mu, s) 99 log_cdf = self.cauchy.log_cdf(value, mu, s) 100 sf = self.cauchy.survival_function(value, mu, s) 101 log_sf = self.cauchy.log_survival(value, mu, s) 110 mu = Tensor([0.0], dtype=dtype.float32) 112 ans = net(value, mu, s) 124 def construct(self, mu, s, mu_a, s_a): argument [all …]
|
/third_party/boost/libs/math/doc/distributions/ |
D | inverse_gaussian.qbk | 66 For mean parameters [mu] and scale (also called precision) parameter [lambda], 70 [expression f(x;[mu], [lambda]) = [sqrt]([lambda]/2[pi]x[super 3]) e[super -[lambda](x-[mu])[sup2]/… 74 [expression F(x;[mu], [lambda]) = [Phi]{[sqrt]([lambda]/x) (x/[mu]-1)} + e[super 2[mu]/[lambda]] [… 79 varies for a few values of parameters [mu] and [lambda]: 85 Tweedie also provided 3 other parameterisations where ([mu] and [lambda]) 86 are replaced by their ratio [phi] = [lambda]/[mu] and by 1/[mu]: 89 Another related parameterisation, the __wald_distrib (where mean [mu] is unity) is also provided. 95 Constructs an inverse_gaussian distribution with [mu] mean, 98 Requires that both the mean [mu] parameter and scale [lambda] are greater than zero, 103 Returns the mean [mu] parameter of this distribution. [all …]
|
/third_party/grpc/src/ruby/ext/grpc/ |
D | rb_event_thread.c | 46 gpr_mu mu; member 60 gpr_mu_lock(&event_queue.mu); in grpc_rb_event_queue_enqueue() 68 gpr_mu_unlock(&event_queue.mu); in grpc_rb_event_queue_enqueue() 87 gpr_mu_destroy(&event_queue.mu); in grpc_rb_event_queue_destroy() 94 gpr_mu_lock(&event_queue.mu); in grpc_rb_wait_for_event_no_gil() 97 gpr_mu_unlock(&event_queue.mu); in grpc_rb_wait_for_event_no_gil() 100 gpr_cv_wait(&event_queue.cv, &event_queue.mu, in grpc_rb_wait_for_event_no_gil() 103 gpr_mu_unlock(&event_queue.mu); in grpc_rb_wait_for_event_no_gil() 109 gpr_mu_lock(&event_queue.mu); in grpc_rb_event_unblocking_func() 112 gpr_mu_unlock(&event_queue.mu); in grpc_rb_event_unblocking_func() [all …]
|
/third_party/glslang/Test/ |
D | spv.intcoopmat.comp | 54 …ucoopmatNV<8, gl_ScopeSubgroup, 16, (2>1?8:4)> mu = ucoopmatNV<8, gl_ScopeSubgroup, 16, (2>1?8:4)>… 57 mu = mu + mu; 58 mu = mu - mu; 62 fcoopmatNV<16, gl_ScopeSubgroup, 16, 8> mf16_0 = fcoopmatNV<16, gl_ScopeSubgroup, 16, 8>(mu); 63 fcoopmatNV<32, gl_ScopeSubgroup, 16, 8> mf32_0 = fcoopmatNV<32, gl_ScopeSubgroup, 16, 8>(mu); 67 uint8_t x = mu[1]; 72 coopMatLoadNV(mu, block8.x, 16, 128, false); 73 coopMatStoreNV(mu, block8.x, 16, 128, false); 98 coopMatLoadNV(mu, block8.y, 16, 128, false); 99 coopMatStoreNV(mu, block8.y, 16, 128, false);
|