/third_party/python/Python/ |
H A D | condvar.h | 105 http://www.cse.wustl.edu/~schmidt/win32-cv-1.html 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 in _PyCOND_WAIT_MS() 192 PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs) PyCOND_WAIT() argument 199 PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us) PyCOND_TIMEDWAIT() argument 205 PyCOND_SIGNAL(PyCOND_T *cv) PyCOND_SIGNAL() argument 223 PyCOND_BROADCAST(PyCOND_T *cv) PyCOND_BROADCAST() argument 264 PyCOND_INIT(PyCOND_T *cv) PyCOND_INIT() argument 270 PyCOND_FINI(PyCOND_T *cv) PyCOND_FINI() argument 276 PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs) PyCOND_WAIT() argument 285 PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us) PyCOND_TIMEDWAIT() argument 291 PyCOND_SIGNAL(PyCOND_T *cv) PyCOND_SIGNAL() argument 298 PyCOND_BROADCAST(PyCOND_T *cv) PyCOND_BROADCAST() argument [all...] |
H A D | thread_nt.h | 30 PyCOND_T cv; member 41 if (PyCOND_INIT(&m->cv)) in AllocNonRecursiveMutex() 44 PyCOND_FINI(&m->cv); in AllocNonRecursiveMutex() 58 PyCOND_FINI(&mutex->cv); in FreeNonRecursiveMutex() 72 if (PyCOND_WAIT(&mutex->cv, &mutex->cs)) { in EnterNonRecursiveMutex() 84 if (PyCOND_TIMEDWAIT(&mutex->cv, &mutex->cs, microseconds) < 0) { in EnterNonRecursiveMutex() 112 result = !PyCOND_SIGNAL(&mutex->cv); in LeaveNonRecursiveMutex()
|
/third_party/pulseaudio/src/tests/ |
H A D | volume-test.c | 34 pa_cvolume cv; in START_TEST() local 55 map.channels = cv.channels = 2; in START_TEST() 62 pa_cvolume_set(&cv, 2, v); in START_TEST() 64 pa_log_debug("Volume: %3i [%s]", v, pa_cvolume_snprint_verbose(s, sizeof(s), &cv, &map, true)); in START_TEST() 67 for (cv.values[0] = PA_VOLUME_MUTED; cv.values[0] <= PA_VOLUME_NORM*2; cv.values[0] += 4096) in START_TEST() 68 for (cv.values[1] = PA_VOLUME_MUTED; cv.values[1] <= PA_VOLUME_NORM*2; cv in START_TEST() [all...] |
H A D | mult-s16-test.c | 33 static inline int32_t pa_mult_s16_volume_32(int16_t v, int32_t cv) { in pa_mult_s16_volume_32() argument 39 int32_t hi = cv >> 16; in pa_mult_s16_volume_32() 40 int32_t lo = cv & 0xFFFF; in pa_mult_s16_volume_32() 44 static inline int32_t pa_mult_s16_volume_64(int16_t v, int32_t cv) { in pa_mult_s16_volume_64() argument 46 return (v * (int64_t) cv) >> 16; in pa_mult_s16_volume_64()
|
/third_party/python/Lib/ |
H A D | _osx_support.py | 143 def _save_modified_value(_config_vars, cv, newvalue): 146 oldvalue = _config_vars.get(cv, '') 147 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 148 _config_vars[_INITPRE + cv] = oldvalue 149 _config_vars[cv] = newvalue 251 for cv in _COMPILER_CONFIG_VARS: 252 if cv in _config_vars and cv not in os.environ: 253 cv_split = _config_vars[cv].split() 254 cv_split[0] = cc if cv ! [all...] |
H A D | turtle.py | 471 img = TK.PhotoImage(width=1, height=1, master=self.cv) 479 return TK.PhotoImage(file=filename, master=self.cv) 481 def __init__(self, cv): 482 self.cv = cv 483 if isinstance(cv, ScrolledCanvas): 484 w = self.cv.canvwidth 485 h = self.cv.canvheight 487 w = int(self.cv.cget("width")) 488 h = int(self.cv [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | conditionvariable_test.cpp | 26 marl::ConditionVariable cv; in TEST_F() local 31 cv.wait(lock, [&] { in TEST_F() 37 cv.notify_one(); in TEST_F() 49 cv.notify_one(); in TEST_F() 50 cv.wait(lock, [&] { in TEST_F() 69 marl::ConditionVariable cv; in TEST_P() local 74 cv.wait(lock, [&] { in TEST_P() 80 cv.notify_one(); in TEST_P() 92 cv.notify_one(); in TEST_P() 93 cv in TEST_P() 116 marl::ConditionVariable cv; TEST_P() local [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | mix.c | 228 int32_t cv = m->linear[channel].i; in pa_mix_generic_s16ne() local 230 if (PA_LIKELY(cv > 0)) in pa_mix_generic_s16ne() 231 sum += pa_mult_s16_volume(*((int16_t*) m->ptr), cv); in pa_mix_generic_s16ne() 267 int32_t cv = m->linear[channel].i; in pa_mix_s16re_c() local 269 if (PA_LIKELY(cv > 0)) in pa_mix_s16re_c() 270 sum += pa_mult_s16_volume(PA_INT16_SWAP(*((int16_t*) m->ptr)), cv); in pa_mix_s16re_c() 293 int32_t cv = m->linear[channel].i; in pa_mix_s32ne_c() local 296 if (PA_LIKELY(cv > 0)) { in pa_mix_s32ne_c() 298 v = (v * cv) >> 16; in pa_mix_s32ne_c() 323 int32_t cv in pa_mix_s32re_c() local 351 int32_t cv = m->linear[channel].i; pa_mix_s24ne_c() local 379 int32_t cv = m->linear[channel].i; pa_mix_s24re_c() local 409 int32_t cv = m->linear[channel].i; pa_mix_s24_32ne_c() local 439 int32_t cv = m->linear[channel].i; pa_mix_s24_32re_c() local 469 int32_t v, cv = m->linear[channel].i; pa_mix_u8_c() local 498 int32_t cv = m->linear[channel].i; pa_mix_ulaw_c() local 524 int32_t cv = m->linear[channel].i; pa_mix_alaw_c() local 550 float v, cv = m->linear[channel].f; pa_mix_float32ne_c() local 578 float cv = m->linear[channel].f; pa_mix_float32re_c() local [all...] |
H A D | cli-text.c | 199 cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], in pa_sink_list_to_string() local 244 pa_cvolume_snprint_verbose(cv, in pa_sink_list_to_string() 245 sizeof(cv), in pa_sink_list_to_string() 313 cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], in pa_source_list_to_string() local 355 pa_cvolume_snprint_verbose(cv, in pa_source_list_to_string() 356 sizeof(cv), in pa_source_list_to_string() 429 char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cv[PA_CVOLUME_SNPRINT_VERBOSE_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX], *t, clt[28]; in pa_source_output_list_to_string() local 447 pa_cvolume_snprint_verbose(cv, sizeof(cv), &v, &o->channel_map, true), in pa_source_output_list_to_string() 526 char ss[PA_SAMPLE_SPEC_SNPRINT_MAX], cv[PA_CVOLUME_SNPRINT_MA in pa_sink_input_list_to_string() local 618 char ss[PA_SAMPLE_SPEC_SNPRINT_MAX] = "n/a", cv[PA_CVOLUME_SNPRINT_MAX], cm[PA_CHANNEL_MAP_SNPRINT_MAX] = "n/a", *t; pa_scache_list_to_string() local [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_cond_wait-cancel_ignored.c | 11 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable 17 pthread_cond_signal(&cv); in cleanup() 25 pthread_cond_signal(&cv); in waiter() 27 while (waiting) pthread_cond_wait(&cv, &mx); in waiter() 39 while (!waiting) pthread_cond_wait(&cv, &mx); in main() 46 while (waiting && !pthread_cond_timedwait(&cv, &mx, &ts)); in main() 48 pthread_cond_signal(&cv); in main()
|
/third_party/python/Include/ |
H A D | dynamic_annotations.h | 104 /* Report that wait on the condition variable at address "cv" has succeeded 106 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) \ 107 AnnotateCondVarWait(__FILE__, __LINE__, cv, lock) 109 /* Report that wait on the condition variable at "cv" has succeeded. Variant 111 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) \ 112 AnnotateCondVarWait(__FILE__, __LINE__, cv, NULL) 115 "cv". */ 116 #define _Py_ANNOTATE_CONDVAR_SIGNAL(cv) \ 117 AnnotateCondVarSignal(__FILE__, __LINE__, cv) 119 /* Report that we are about to signal_all on the condition variable at "cv" [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | mutex.h | 44 // wait_locked calls cv.wait() on this already locked mutex. 46 MARL_NO_EXPORT inline void wait_locked(std::condition_variable& cv, 49 cv.wait(lock, std::forward<Predicate>(p)); in REQUIRES() 53 // wait_until_locked calls cv.wait() on this already locked mutex. 55 MARL_NO_EXPORT inline bool wait_until_locked(std::condition_variable& cv, 59 auto res = cv.wait_until(lock, std::forward<Time>(time), in REQUIRES() 78 // wait calls cv.wait() on this lock. 80 inline void wait(std::condition_variable& cv, Predicate&& p) { in wait() argument 81 cv.wait(_, std::forward<Predicate>(p)); in wait() 84 // wait_until calls cv 86 wait_until(std::condition_variable& cv, Time&& time, Predicate&& p) wait_until() argument [all...] |
H A D | waitgroup.h | 72 ConditionVariable cv; member 78 WaitGroup::Data::Data(Allocator* allocator) : cv(allocator) {} in Data() 95 data->cv.notify_all(); in done() 103 data->cv.wait(lock, [this] { return data->count == 0; }); in wait()
|
H A D | event.h | 122 ConditionVariable cv; member 132 : cv(allocator), mode(mode), signalled(initialState) {} in Shared() 141 cv.notify_one(); in signal() 143 cv.notify_all(); in signal() 152 cv.wait(lock, [&] { return signalled; }); in wait() 162 if (!cv.wait_for(lock, duration, [&] { return signalled; })) { in wait_for() 175 if (!cv.wait_until(lock, timeout, [&] { return signalled; })) { in wait_until()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | SoftCache.java | 55 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() 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() 85 return cv.resetIfCleared(value); in getInstance()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | SoftCache.java | 57 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance() 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() 87 return cv.resetIfCleared(value); in getInstance()
|
/third_party/libwebsockets/lib/misc/ |
H A D | lws-struct-sqlite.c | 35 lws_struct_sq3_deser_cb(void *priv, int cols, char **cv, char **cn) in lws_struct_sq3_deser_cb() argument 57 if (!cv[n] || strcmp(cn[n], map->colname)) in lws_struct_sq3_deser_cb() 65 *pc = (signed char)atoi(cv[n]); in lws_struct_sq3_deser_cb() 71 *ps = (short)atoi(cv[n]); in lws_struct_sq3_deser_cb() 77 *pi = (int)atoll(cv[n]); /* 32-bit OS */ in lws_struct_sq3_deser_cb() 83 *pl = (long)atoll(cv[n]); /* 32-bit OS */ in lws_struct_sq3_deser_cb() 89 *pll = atoll(cv[n]); in lws_struct_sq3_deser_cb() 97 *pc = (unsigned char)(unsigned int)atoi(cv[n]); in lws_struct_sq3_deser_cb() 103 *ps = (unsigned short)atoi(cv[n]); in lws_struct_sq3_deser_cb() 109 *pi = (unsigned int)atoi(cv[ in lws_struct_sq3_deser_cb() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | softfloat.h | 247 int sv, cv; in av_sincos_sf() local 252 cv = av_costbl_1_sf[idx & 0xf]; in av_sincos_sf() 253 cv = (cv ^ sign) - sign; in av_sincos_sf() 264 idx = (int)(((int64_t)cv * ct - (int64_t)sv * st + 0x20000000) >> 30); in av_sincos_sf() 266 sv = (int)(((int64_t)cv * st + (int64_t)sv * ct + 0x20000000) >> 30); in av_sincos_sf() 268 cv = idx; in av_sincos_sf() 274 idx = (int)(((int64_t)cv * ct - (int64_t)sv * st + 0x20000000) >> 30); in av_sincos_sf() 276 sv = (int)(((int64_t)cv * st + (int64_t)sv * ct + 0x20000000) >> 30); in av_sincos_sf() 277 cv in av_sincos_sf() [all...] |
/third_party/python/Lib/test/ |
H A D | test__osx_support.py | 23 for cv in ('CFLAGS', 'LDFLAGS', 'CPPFLAGS', 27 if cv in self.env: 28 self.env.unset(cv) 78 cv = 'CC' 80 _osx_support._save_modified_value(config_vars, cv, newvalue) 93 cv = 'CC' 95 _osx_support._save_modified_value(config_vars, cv, newvalue) 103 cv = 'CC' 105 _osx_support._save_modified_value(config_vars, cv, newvalue)
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
H A D | PeriodFormatterData.java | 140 * @param cv the format to use for displaying the count 151 public boolean appendUnit(TimeUnit unit, int count, int cv, in appendUnit() argument 174 appendCount(unit, false, false, count, cv, useCountSep, in appendUnit() 180 // check cv in appendUnit() 181 if (cv == ECountVariant.HALF_FRACTION && dr.halfSupport != null) { in appendUnit() 191 cv = ECountVariant.DECIMAL1; in appendUnit() 197 int form = computeForm(unit, count, cv, multiple && last); in appendUnit() 227 int suffixIndex = appendCount(unit, omitCount, useDigitPrefix, count, cv, in appendUnit() 250 * @param cv the format to use for displaying the count 259 int count, int cv, boolea in appendCount() 257 appendCount(TimeUnit unit, boolean omitCount, boolean useDigitPrefix, int count, int cv, boolean useSep, String name, boolean last, StringBuffer sb) appendCount() argument 509 computeForm(TimeUnit unit, int count, int cv, boolean lastOfMultiple) computeForm() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/impl/ |
H A D | PeriodFormatterData.java | 142 * @param cv the format to use for displaying the count 153 public boolean appendUnit(TimeUnit unit, int count, int cv, in appendUnit() argument 176 appendCount(unit, false, false, count, cv, useCountSep, in appendUnit() 182 // check cv in appendUnit() 183 if (cv == ECountVariant.HALF_FRACTION && dr.halfSupport != null) { in appendUnit() 193 cv = ECountVariant.DECIMAL1; in appendUnit() 199 int form = computeForm(unit, count, cv, multiple && last); in appendUnit() 229 int suffixIndex = appendCount(unit, omitCount, useDigitPrefix, count, cv, in appendUnit() 252 * @param cv the format to use for displaying the count 261 int count, int cv, boolea in appendCount() 259 appendCount(TimeUnit unit, boolean omitCount, boolean useDigitPrefix, int count, int cv, boolean useSep, String name, boolean last, StringBuffer sb) appendCount() argument 511 computeForm(TimeUnit unit, int count, int cv, boolean lastOfMultiple) computeForm() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Compiler.h | 449 void AnnotateHappensAfter(const char *file, int line, const volatile void *cv); 450 void AnnotateHappensBefore(const char *file, int line, const volatile void *cv); 460 # define TsanHappensBefore(cv) AnnotateHappensBefore(__FILE__, __LINE__, cv) 463 # define TsanHappensAfter(cv) AnnotateHappensAfter(__FILE__, __LINE__, cv) 471 # define TsanHappensBefore(cv) 472 # define TsanHappensAfter(cv)
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Compiler.h | 419 void AnnotateHappensAfter(const char *file, int line, const volatile void *cv); 420 void AnnotateHappensBefore(const char *file, int line, const volatile void *cv); 430 # define TsanHappensBefore(cv) AnnotateHappensBefore(__FILE__, __LINE__, cv) 433 # define TsanHappensAfter(cv) AnnotateHappensAfter(__FILE__, __LINE__, cv) 441 # define TsanHappensBefore(cv) 442 # define TsanHappensAfter(cv)
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
H A D | mutex_test.cc | 73 absl::CondVar cv; member 175 cxt->cv.Wait(&cxt->mu); in TestSignalAll() 180 cxt->cv.SignalAll(); in TestSignalAll() 193 cxt->cv.Wait(&cxt->mu); in TestSignal() 198 cxt->cv.Signal(); in TestSignal() 210 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(100)); in TestCVTimeout() 215 cxt->cv.SignalAll(); in TestCVTimeout() 234 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 247 cxt->cv.WaitWithTimeout(&cxt->mu, absl::Seconds(1)); in TestTime() 258 cxt->cv in TestTime() 344 EndTest(int *c0, int *c1, absl::Mutex *mu, absl::CondVar *cv, const std::function<void(int)>& cb) EndTest() argument 537 absl::CondVar cv; global() member 884 ReaderForReaderOnCondVar(absl::Mutex *mu, absl::CondVar *cv, int *running) ReaderForReaderOnCondVar() argument 955 absl::CondVar cv; TEST() local 972 absl::CondVar cv; // so the condition function can be invoked from global() member 1536 absl::CondVar cv; // signals a change of `value` global() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | substitute_test.cc | 178 const auto& cv = v; in TEST() local 180 absl::Substitute("$0 $1 $2 $3", v[0], v[1], cv[0], cv[1])); in TEST() 183 absl::SubstituteAndAppend(&str, "$0 $1 $2 $3", v[0], v[1], cv[0], cv[1]); in TEST()
|