/external/python/cpython3/Python/ |
D | condvar.h | 138 PyCOND_INIT(PyCOND_T *cv) in PyCOND_INIT() argument 144 cv->sem = CreateSemaphore(NULL, 0, 100000, NULL); in PyCOND_INIT() 145 if (cv->sem==NULL) in PyCOND_INIT() 147 cv->waiting = 0; in PyCOND_INIT() 152 PyCOND_FINI(PyCOND_T *cv) in PyCOND_FINI() argument 154 return CloseHandle(cv->sem) ? 0 : -1; in PyCOND_FINI() 161 _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) in _PyCOND_WAIT_MS() argument 164 cv->waiting++; in _PyCOND_WAIT_MS() 170 wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); in _PyCOND_WAIT_MS() 173 --cv->waiting; in _PyCOND_WAIT_MS() [all …]
|
/external/python/cpython3/Lib/ |
D | _osx_support.py | 120 def _save_modified_value(_config_vars, cv, newvalue): argument 123 oldvalue = _config_vars.get(cv, '') 124 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 125 _config_vars[_INITPRE + cv] = oldvalue 126 _config_vars[cv] = newvalue 197 for cv in _COMPILER_CONFIG_VARS: 198 if cv in _config_vars and cv not in os.environ: 199 cv_split = _config_vars[cv].split() 200 cv_split[0] = cc if cv != 'CXX' else cc + '++' 201 _save_modified_value(_config_vars, cv, ' '.join(cv_split)) [all …]
|
/external/python/cpython2/Lib/ |
D | _osx_support.py | 120 def _save_modified_value(_config_vars, cv, newvalue): argument 123 oldvalue = _config_vars.get(cv, '') 124 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 125 _config_vars[_INITPRE + cv] = oldvalue 126 _config_vars[cv] = newvalue 197 for cv in _COMPILER_CONFIG_VARS: 198 if cv in _config_vars and cv not in os.environ: 199 cv_split = _config_vars[cv].split() 200 cv_split[0] = cc if cv != 'CXX' else cc + '++' 201 _save_modified_value(_config_vars, cv, ' '.join(cv_split)) [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/ |
D | ClassProbesAdapterTest.java | 76 final MockClassVisitor cv = new MockClassVisitor(); in testProbeCounter() local 77 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testProbeCounter() 82 assertEquals(3, cv.count); in testProbeCounter() 87 final MockClassVisitor cv = new MockClassVisitor() { in testVisitClassMethods() local 94 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testVisitClassMethods() 100 assertEquals(0, cv.count); in testVisitClassMethods() 102 assertEquals(3, cv.count); in testVisitClassMethods() 107 final MockClassVisitor cv = new MockClassVisitor(); in testVisitMethodNullMethodVisitor() local 108 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testVisitMethodNullMethodVisitor() 114 assertEquals(10, cv.count); in testVisitMethodNullMethodVisitor() [all …]
|
/external/swiftshader/third_party/marl/src/ |
D | conditionvariable_test.cpp | 27 marl::ConditionVariable cv; in TEST_F() local 32 cv.wait(lock, [&] { in TEST_F() 38 cv.notify_one(); in TEST_F() 50 cv.notify_one(); in TEST_F() 51 cv.wait(lock, [&] { in TEST_F() 70 marl::ConditionVariable cv; in TEST_P() local 75 cv.wait(lock, [&] { in TEST_P() 81 cv.notify_one(); in TEST_P() 93 cv.notify_one(); in TEST_P() 94 cv.wait(lock, [&] { in TEST_P() [all …]
|
/external/grpc-grpc/src/core/lib/gpr/ |
D | sync_posix.cc | 64 void gpr_cv_init(gpr_cv* cv) { in gpr_cv_init() argument 70 GPR_ASSERT(pthread_cond_init(cv, &attr) == 0); in gpr_cv_init() 73 void gpr_cv_destroy(gpr_cv* cv) { GPR_ASSERT(pthread_cond_destroy(cv) == 0); } in gpr_cv_destroy() argument 75 int gpr_cv_wait(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline) { in gpr_cv_wait() argument 79 err = pthread_cond_wait(cv, mu); in gpr_cv_wait() 89 err = pthread_cond_timedwait(cv, mu, &abs_deadline_ts); in gpr_cv_wait() 95 void gpr_cv_signal(gpr_cv* cv) { GPR_ASSERT(pthread_cond_signal(cv) == 0); } in gpr_cv_signal() argument 97 void gpr_cv_broadcast(gpr_cv* cv) { in gpr_cv_broadcast() argument 98 GPR_ASSERT(pthread_cond_broadcast(cv) == 0); in gpr_cv_broadcast()
|
D | sync_windows.cc | 61 void gpr_cv_init(gpr_cv* cv) { InitializeConditionVariable(cv); } in gpr_cv_init() argument 63 void gpr_cv_destroy(gpr_cv* cv) { in gpr_cv_destroy() argument 67 int gpr_cv_wait(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline) { in gpr_cv_wait() argument 73 SleepConditionVariableCS(cv, &mu->cs, INFINITE); in gpr_cv_wait() 88 timeout = (SleepConditionVariableCS(cv, &mu->cs, timeout_max_ms) == 0 && in gpr_cv_wait() 96 void gpr_cv_signal(gpr_cv* cv) { WakeConditionVariable(cv); } in gpr_cv_signal() argument 98 void gpr_cv_broadcast(gpr_cv* cv) { WakeAllConditionVariable(cv); } in gpr_cv_broadcast() argument
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | destructor.pass.cpp | 23 std::condition_variable_any* cv; variable 33 cv->notify_one(); in f() 34 delete cv; in f() 42 cv->notify_one(); in g() 44 cv->wait(m); in g() 50 cv = new std::condition_variable_any; in main() 54 cv->wait(m); in main()
|
D | wait_terminates.sh.cpp | 102 std::condition_variable_any cv; variable 107 cv.notify_one(); in signal_me() 124 case 1: cv.wait(mut); break; in main() 125 case 2: cv.wait(mut, pred_function); break; in main() 126 case 3: cv.wait_for(mut, wait); break; in main() 127 case 4: cv.wait_for(mut, wait, pred_function); break; in main() 128 case 5: cv.wait_until(mut, Clock::now() + wait); break; in main() 129 case 6: cv.wait_until(mut, Clock::now() + wait, pred_function); break; in main()
|
D | wait_for.pass.cpp | 26 std::condition_variable_any cv; variable 45 cv.notify_one(); in f() 48 cv.wait_for(lk, milliseconds(250)) == std::cv_status::no_timeout) in f() 71 cv.wait(lk); in main() 75 cv.notify_one(); in main() 85 cv.wait(lk); in main()
|
D | wait.pass.cpp | 24 std::condition_variable_any cv; variable 39 cv.notify_one(); in f() 41 cv.wait(lk); in f() 51 cv.wait(lk); in main() 55 cv.notify_one(); in main()
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | destructor.pass.cpp | 23 std::condition_variable* cv; variable 34 cv->notify_one(); in f() 35 delete cv; in f() 42 cv->notify_one(); in g() 44 cv->wait(lk); in g() 49 cv = new std::condition_variable; in main() 53 cv->wait(lk); in main()
|
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
D | any_cast_pointer.pass.cpp | 122 Type const* cv = any_cast<Type const>(&a); in test_cast() local 123 assert(cv != nullptr); in test_cast() 124 assert(cv == v); in test_cast() 125 assert(cv->value == 999); in test_cast() 128 cv = any_cast<Type>(&ca); in test_cast() 129 assert(cv != nullptr); in test_cast() 130 assert(cv == v); in test_cast() 131 assert(cv->value == 999); in test_cast() 134 cv = any_cast<Type const>(&ca); in test_cast() 135 assert(cv != nullptr); in test_cast() [all …]
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/instr/ |
D | InterfaceFieldProbeArrayStrategy.java | 84 public void addMembers(final ClassVisitor cv, final int probeCount) { in addMembers() argument 85 createDataField(cv); in addMembers() 86 createInitMethod(cv, probeCount); in addMembers() 88 createClinitMethod(cv, probeCount); in addMembers() 92 private void createDataField(final ClassVisitor cv) { in createDataField() argument 93 cv.visitField(InstrSupport.DATAFIELD_INTF_ACC, in createDataField() 98 private void createInitMethod(final ClassVisitor cv, final int probeCount) { in createInitMethod() argument 99 final MethodVisitor mv = cv.visitMethod(InstrSupport.INITMETHOD_ACC, in createInitMethod() 134 private void createClinitMethod(final ClassVisitor cv, in createClinitMethod() argument 136 final MethodVisitor mv = cv.visitMethod(InstrSupport.CLINIT_ACC, in createClinitMethod()
|
/external/python/cpython3/Include/ |
D | dynamic_annotations.h | 106 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) \ argument 107 AnnotateCondVarWait(__FILE__, __LINE__, cv, lock) 111 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) \ argument 112 AnnotateCondVarWait(__FILE__, __LINE__, cv, NULL) 116 #define _Py_ANNOTATE_CONDVAR_SIGNAL(cv) \ argument 117 AnnotateCondVarSignal(__FILE__, __LINE__, cv) 120 #define _Py_ANNOTATE_CONDVAR_SIGNAL_ALL(cv) \ argument 121 AnnotateCondVarSignalAll(__FILE__, __LINE__, cv) 336 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) /* empty */ argument 337 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) /* empty */ argument [all …]
|
/external/libsrtp2/crypto/cipher/ |
D | aes_gcm_nss.c | 194 static srtp_err_status_t srtp_aes_gcm_nss_context_init(void *cv, in srtp_aes_gcm_nss_context_init() argument 197 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_nss_context_init() 231 void *cv, in srtp_aes_gcm_nss_set_iv() argument 235 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_nss_set_iv() 259 static srtp_err_status_t srtp_aes_gcm_nss_set_aad(void *cv, in srtp_aes_gcm_nss_set_aad() argument 263 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_nss_set_aad() 278 static srtp_err_status_t srtp_aes_gcm_nss_do_crypto(void *cv, in srtp_aes_gcm_nss_do_crypto() argument 283 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_nss_do_crypto() 325 static srtp_err_status_t srtp_aes_gcm_nss_encrypt(void *cv, in srtp_aes_gcm_nss_encrypt() argument 329 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_nss_encrypt() [all …]
|
D | aes_gcm_ossl.c | 172 static srtp_err_status_t srtp_aes_gcm_openssl_context_init(void *cv, in srtp_aes_gcm_openssl_context_init() argument 175 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_openssl_context_init() 208 void *cv, in srtp_aes_gcm_openssl_set_iv() argument 212 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_openssl_set_iv() 243 static srtp_err_status_t srtp_aes_gcm_openssl_set_aad(void *cv, in srtp_aes_gcm_openssl_set_aad() argument 247 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_openssl_set_aad() 284 static srtp_err_status_t srtp_aes_gcm_openssl_encrypt(void *cv, in srtp_aes_gcm_openssl_encrypt() argument 288 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_openssl_encrypt() 312 static srtp_err_status_t srtp_aes_gcm_openssl_get_tag(void *cv, in srtp_aes_gcm_openssl_get_tag() argument 316 srtp_aes_gcm_ctx_t *c = (srtp_aes_gcm_ctx_t *)cv; in srtp_aes_gcm_openssl_get_tag() [all …]
|
/external/grpc-grpc/test/cpp/end2end/ |
D | client_callback_end2end_test.cc | 88 std::condition_variable cv; in SendRpcs() local 92 [&request, &response, &done, &mu, &cv](Status s) { in SendRpcs() 98 cv.notify_one(); in SendRpcs() 102 cv.wait(l); in SendRpcs() 121 std::condition_variable cv; in SendRpcsGeneric() local 125 [&request, &recv_buf, &done, &mu, &cv, maybe_except](Status s) { in SendRpcsGeneric() 133 cv.notify_one(); in SendRpcsGeneric() 144 cv.wait(l); in SendRpcsGeneric() 217 std::condition_variable cv; in TEST_F() local 220 &context, &request, &response, [&response, &done, &mu, &cv](Status s) { in TEST_F() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ |
D | ProbeArrayStrategyFactoryTest.java | 41 private ClassVisitorMock cv; field in ProbeArrayStrategyFactoryTest 46 cv = new ClassVisitorMock(); in setup() 120 strategy.storeInstance(cv.visitMethod(0, null, null, null, null), false, in testClass8() 151 cv.isInterface = true; in testInterface8() 159 strategy.storeInstance(cv.visitMethod(0, null, null, null, null), false, in testInterface8() 187 strategy.storeInstance(cv.visitMethod(0, null, null, null, null), false, in testClinitAndAbstractMethodsInterface8() 202 cv.isInterface = true; in testClinitAndMethodsInterface8() 210 strategy.storeInstance(cv.visitMethod(0, "<clinit>", null, null, null), in testClinitAndMethodsInterface8() 308 strategy.addMembers(cv, 123); in test() 415 assertEquals(InstrSupport.DATAFIELD_NAME, cv.fieldName); [all …]
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/flow/ |
D | ClassProbesAdapter.java | 29 private final ClassProbesVisitor cv; field in ClassProbesAdapter 45 public ClassProbesAdapter(final ClassProbesVisitor cv, in ClassProbesAdapter() argument 47 super(InstrSupport.ASM_API_VERSION, cv); in ClassProbesAdapter() 48 this.cv = cv; in ClassProbesAdapter() 64 final MethodProbesVisitor mv = cv.visitMethod(access, name, desc, in visitMethod() 97 cv.visitTotalProbeCount(counter);
|
/external/oss-fuzz/projects/opencv/ |
D | imdecode_fuzzer.cc | 7 cv::Mat data_matrix = in LLVMFuzzerTestOneInput() 8 cv::Mat(1, image_data.size(), CV_8UC1, image_data.data()); in LLVMFuzzerTestOneInput() 10 cv::Mat decoded_matrix = cv::imdecode(data_matrix, CV_LOAD_IMAGE_UNCHANGED); in LLVMFuzzerTestOneInput() 11 } catch (cv::Exception e) { in LLVMFuzzerTestOneInput()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SoftCache.java | 55 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 56 if(cv.isNull()) { in getInstance() 59 V value = cv.get(); in getInstance() 66 return cv.resetIfCleared(value); in getInstance() 84 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 85 return cv.resetIfCleared(value); in getInstance()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | SoftCache.java | 57 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 58 if(cv.isNull()) { in getInstance() 61 V value = cv.get(); in getInstance() 68 return cv.resetIfCleared(value); in getInstance() 86 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() local 87 return cv.resetIfCleared(value); in getInstance()
|
/external/fec/ |
D | sumsq_av.c | 18 …union { vector unsigned char cv; vector unsigned int iv; unsigned int w[4]; unsigned char c[16];} … in sumsq_av() member 26 x = vec_sro(x,s.cv); in sumsq_av() 49 x = vec_sro(x,s.cv); in sumsq_av() 56 s1 = vec_sro(sums,s.cv); in sumsq_av() 57 s2 = vec_sro(carries,s.cv); in sumsq_av() 63 s1 = vec_sro(sums,s.cv); in sumsq_av() 64 s2 = vec_sro(carries,s.cv); in sumsq_av()
|
/external/python/pycparser/tests/ |
D | test_c_ast.py | 55 cv = self.ConstantVisitor() 56 cv.visit(b1) 58 self.assertEqual(cv.values, ['6']) 70 cv = self.ConstantVisitor() 71 cv.visit(b3) 73 self.assertEqual(cv.values, ['111', '6', '6']) 92 cv = self.ConstantVisitor() 93 cv.visit(comp) 95 self.assertEqual(cv.values,
|