Home
last modified time | relevance | path

Searched refs:cond_var (Results 1 – 19 of 19) sorted by relevance

/external/OpenCL-CTS/test_common/harness/
DThreadPool.cpp154 static void _InitializeConditionVariable(_PCONDITION_VARIABLE cond_var) in _InitializeConditionVariable() argument
156 cond_var->mEvent = CreateEvent(NULL, TRUE, FALSE, NULL); in _InitializeConditionVariable()
157 InitializeCriticalSection(cond_var->mLock); in _InitializeConditionVariable()
158 cond_var->mWaiters = 0; in _InitializeConditionVariable()
159 cond_var->mGeneration = 0; in _InitializeConditionVariable()
161 cond_var->mReleaseCount = 0; in _InitializeConditionVariable()
165 static void _SleepConditionVariableCS(_PCONDITION_VARIABLE cond_var, in _SleepConditionVariableCS() argument
169 EnterCriticalSection(cond_var->mLock); in _SleepConditionVariableCS()
170 cl_int generation = cond_var->mGeneration; in _SleepConditionVariableCS()
171 ++cond_var->mWaiters; in _SleepConditionVariableCS()
[all …]
/external/libhevc/encoder/
Dosal_cond_var.c120 if(0 != pthread_cond_init(&(cond_var_handle->cond_var), 0)) in osal_cond_var_create()
171 status = pthread_cond_destroy(&(handle->cond_var)); in osal_cond_var_destroy()
217 cond_var_handle_t *cond_var = (cond_var_handle_t *)cond_var_handle; in osal_cond_var_wait() local
219 return pthread_cond_wait(&(cond_var->cond_var), &(mutex->mutex_handle)); in osal_cond_var_wait()
256 cond_var_handle_t *cond_var = (cond_var_handle_t *)cond_var_handle; in osal_cond_var_signal() local
257 return pthread_cond_signal(&(cond_var->cond_var)); in osal_cond_var_signal()
Dosal_cond_var.h44 pthread_cond_t cond_var; /* Mutex Identifier */ member
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dsync_posix.cc102 GPR_ASSERT(pthread_cond_init(&cv->cond_var, &attr) == 0); in gpr_cv_init()
112 GPR_ASSERT(pthread_cond_destroy(&cv->cond_var) == 0); in gpr_cv_destroy()
124 err = pthread_cond_wait(&cv->cond_var, &mu->mutex); in gpr_cv_wait()
138 err = pthread_cond_timedwait(&cv->cond_var, &mu->mutex, &abs_deadline_ts); in gpr_cv_wait()
149 GPR_ASSERT(pthread_cond_signal(&cv->cond_var) == 0); in gpr_cv_signal()
157 GPR_ASSERT(pthread_cond_broadcast(&cv->cond_var) == 0); in gpr_cv_broadcast()
/external/autotest/client/deps/lansim/src/py/
Dsimulator.py345 cond_var = threading.Condition(lock_cond)
353 callback, ret, cond_var, condition)
362 with cond_var:
365 cond_var.wait()
370 cond_var.wait(cur_timeout)
377 def _condition_poller(self, callback, ref_value, cond_var, func): argument
384 with cond_var:
387 cond_var.notify()
/external/ltp/testcases/realtime/func/pi-tests/
Dtestpi-1.c79 static pthread_cond_t cond_var = PTHREAD_COND_INITIALIZER; variable
96 pthread_cond_wait(&cond_var, &cond_mutex); in func_nonrt()
153 pthread_cond_broadcast(&cond_var); in func_noise()
218 pthread_cond_destroy(&cond_var); in main()
Dtestpi-2.c81 static pthread_cond_t cond_var = PTHREAD_COND_INITIALIZER; variable
98 pthread_cond_wait(&cond_var, &cond_mutex); in func_lowrt()
155 pthread_cond_broadcast(&cond_var); in func_noise()
219 pthread_cond_destroy(&cond_var); in main()
Dtestpi-4.c80 static pthread_cond_t cond_var = PTHREAD_COND_INITIALIZER; variable
98 pthread_cond_wait(&cond_var, &cond_mutex); in func_nonrt()
154 pthread_cond_broadcast(&cond_var); in func_noise()
222 pthread_cond_destroy(&cond_var); in main()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dparallel_interleave_dataset_op.cc350 current_worker->cond_var.notify_one(); in GetNextInternal()
413 workers_[interleave_indices_[next_index_]].cond_var.wait(l); in GetNextInternal()
627 condition_variable cond_var; member
640 cond_var.notify_one(); in SetInputs()
677 worker.cond_var.notify_all(); in CancelThreads()
736 workers_[thread_index].cond_var.notify_all(); in WorkerThread()
775 workers_[thread_index].cond_var.wait(l); in WorkerThread()
839 workers_[thread_index].cond_var.wait(l); in WorkerThread()
852 workers_[thread_index].cond_var.notify_one(); in WorkerThread()
900 workers_[thread_index].cond_var.wait(l); in WorkerThread()
[all …]
/external/rust/crates/grpcio-sys/grpc/spm-core-include/grpc/impl/codegen/
Dsync_posix.h41 pthread_cond_t cond_var; member
/external/rust/crates/grpcio-sys/grpc/include/grpc/impl/codegen/
Dsync_posix.h41 pthread_cond_t cond_var; member
/external/tensorflow/tensorflow/core/kernels/data/
Dmulti_device_iterator_ops.cc202 buffer_[i].cond_var.notify_all(); in Reset()
243 buffer_[shard_num].cond_var.notify_all(); in GetNextFromShard()
271 buffer_[shard_num].cond_var.notify_all(); in GetNextFromShard()
359 buffer_[shard_to_fetch].cond_var.wait(l); in BackgroundThread()
425 condition_variable cond_var; member
Dparallel_interleave_dataset_op.cc415 current_elements_[cycle_index_]->cond_var.wait(l); in GetNextInternal()
640 condition_variable cond_var; member
663 element->cond_var.notify_all(); in CancelThreads()
983 element->cond_var.notify_one(); in FutureWorkerThread()
1135 void WaitWorkerThread(condition_variable* cond_var, mutex_lock* l) in WaitWorkerThread() argument
1139 cond_var->wait(*l); in WaitWorkerThread()
1147 element->cond_var.notify_one(); in NotifyElementUpdate()
/external/tensorflow/tensorflow/core/framework/
Dmodel.h76 std::shared_ptr<condition_variable> cond_var) in SharedState()
79 cond_var(std::move(cond_var)), in SharedState()
84 const std::shared_ptr<condition_variable> cond_var; member
Dmodel.cc290 parameter->state->cond_var->notify_all(); in UpdateStateValues()
2642 parameter->state->cond_var->notify_all(); in UpsizeBuffers()
/external/tensorflow/tensorflow/core/platform/cloud/
Dram_file_block_cache.cc151 block->cond_var.notify_all(); in MaybeFetch()
154 block->cond_var.wait_for(l, std::chrono::seconds(60)); in MaybeFetch()
Dram_file_block_cache.h183 condition_variable cond_var; member
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/gcs/
Dram_file_block_cache.cc150 block->cond_var.SignalAll(); in MaybeFetch()
153 block->cond_var.WaitWithTimeout(&block->mu, absl::Minutes(1)); in MaybeFetch()
Dram_file_block_cache.h199 absl::CondVar cond_var; member