Home
last modified time | relevance | path

Searched refs:cv_ (Results 1 – 25 of 42) sorted by relevance

12

/third_party/grpc/src/core/lib/gprpp/
Dfork.cc64 gpr_cv_init(&cv_); in ExecCtxState()
77 gpr_cv_wait(&cv_, &mu_, gpr_inf_future(GPR_CLOCK_REALTIME)); in IncExecCtxCount()
105 gpr_cv_broadcast(&cv_); in AllowExecCtx()
111 gpr_cv_destroy(&cv_); in ~ExecCtxState()
117 gpr_cv cv_; member in grpc_core::internal::ExecCtxState
125 gpr_cv_init(&cv_); in ThreadState()
139 gpr_cv_signal(&cv_); in DecThreadCount()
148 gpr_cv_wait(&cv_, &mu_, gpr_inf_future(GPR_CLOCK_REALTIME)); in AwaitThreads()
156 gpr_cv_destroy(&cv_); in ~ThreadState()
163 gpr_cv cv_; member in grpc_core::internal::ThreadState
Dsync.h125 CondVar() { gpr_cv_init(&cv_); }
126 ~CondVar() { gpr_cv_destroy(&cv_); }
131 void Signal() { gpr_cv_signal(&cv_); }
132 void SignalAll() { gpr_cv_broadcast(&cv_); }
136 return gpr_cv_wait(&cv_, &mu->mu_, ToGprTimeSpec(timeout)) != 0;
139 return gpr_cv_wait(&cv_, &mu->mu_, ToGprTimeSpec(deadline)) != 0;
143 gpr_cv cv_;
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dcond_var.cc30 cv_.wait(*lck, f); in Wait()
38 (void)cv_.wait_for(*lck, std::chrono::milliseconds(1)); in Wait()
55 void CondVar::NotifyOne() noexcept { cv_.notify_one(); } in NotifyOne()
57 void CondVar::NotifyAll() noexcept { cv_.notify_all(); } in NotifyAll()
69 cv_.notify_all(); in Interrupt()
/third_party/grpc/include/grpcpp/impl/codegen/
Dsync.h120 CondVar() { g_core_codegen_interface->gpr_cv_init(&cv_); } in CondVar()
121 ~CondVar() { g_core_codegen_interface->gpr_cv_destroy(&cv_); } in ~CondVar()
126 void Signal() { g_core_codegen_interface->gpr_cv_signal(&cv_); } in Signal()
127 void Broadcast() { g_core_codegen_interface->gpr_cv_broadcast(&cv_); } in Broadcast()
134 return g_core_codegen_interface->gpr_cv_wait(&cv_, mu->get(), deadline); in Wait()
145 gpr_cv cv_;
/third_party/flutter/engine/flutter/fml/synchronization/
Dwaitable_event.cc60 cv_.notify_one(); in Signal()
71 cv_.wait(locker); in Wait()
88 cv_.wait_for(locker, in WaitWithTimeout()
123 cv_.notify_all(); in Signal()
139 cv_.wait(locker); in Wait()
152 &locker, &cv_, in WaitWithTimeout()
Dwaitable_event.h66 std::condition_variable cv_;
108 std::condition_variable cv_;
/third_party/boost/boost/fiber/cuda/
Dwaitfor.hpp60 cv_.notify_one(); in notify()
65 cv_.wait( lk, [this]{ return done_; }); in wait()
71 condition_variable cv_{}; member in boost::fibers::cuda::detail::single_stream_rendezvous
99 cv_.notify_one(); in notify()
105 cv_.wait( lk, [this]{ return stx_.empty(); }); in wait()
111 condition_variable cv_{}; member in boost::fibers::cuda::detail::many_streams_rendezvous
/third_party/boost/boost/fiber/hip/
Dwaitfor.hpp60 cv_.notify_one(); in notify()
65 cv_.wait( lk, [this]{ return done_; }); in wait()
71 condition_variable cv_{}; member in boost::fibers::cuda::detail::single_stream_rendezvous
99 cv_.notify_one(); in notify()
105 cv_.wait( lk, [this]{ return stx_.empty(); }); in wait()
111 condition_variable cv_{}; member in boost::fibers::cuda::detail::many_streams_rendezvous
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/
Dtask_executor.cc42 cv_.wait(lock); in TaskExecutor()
67 cv_.notify_one(); in TaskExecutor()
80 cv_.notify_all(); in ~TaskExecutor()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/
Dconnector.h102 … RETURN_IF_NOT_OK(cv_.Wait(&lk, [this, worker_id]() { return expect_consumer_ == worker_id; })); in Pop()
109 cv_.NotifyAll(); in Pop()
183 rc = cv_.Register(vg->GetIntrpService()); in Register()
205 CondVar cv_; variable
Djagged_connector.h50 … RETURN_IF_NOT_OK(cv_.Wait(&lock, [this, worker_id]() { return expect_consumer_ == worker_id; })); in Pop()
72 cv_.NotifyAll(); in Pop()
Ddb_connector.h75 …RETURN_IF_NOT_OK(cv_.Wait(&lk, [this, worker_id]() { return (expect_consumer_ == worker_id) || end…
93 cv_.NotifyAll();
Dgpu_item_connector.h53 … RETURN_IF_NOT_OK(cv_.Wait(&lock, [this, worker_id]() { return expect_consumer_ == worker_id; })); in Pop()
75 cv_.NotifyAll(); in Pop()
/third_party/grpc/test/cpp/interop/
Dreconnect_interop_server.cc85 cv_.wait(lock); in Start()
115 cv_.notify_one(); in Stop()
149 cv_.notify_all(); in Shutdown()
159 std::condition_variable cv_; member in ReconnectServiceImpl
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dper_thread_sem_test.cc51 cv_.wait(lock, [this]() { return count_ > 0; }); in Wait()
53 cv_.notify_one(); in Wait()
63 cv_.notify_one(); in Post()
68 std::condition_variable cv_; member in absl::synchronization_internal::SimpleSemaphore
Dwaiter.cc155 const int err2 = pthread_cond_init(&cv_, 0); in Waiter()
170 const int err2 = pthread_cond_destroy(&cv_); in ~Waiter()
192 const int err = pthread_cond_wait(&cv_, &mu_); in Wait()
197 const int err = pthread_cond_timedwait(&cv_, &mu_, &abs_timeout); in Wait()
227 const int err = pthread_cond_signal(&cv_); in InternalCondVarPoke()
/third_party/abseil-cpp/absl/synchronization/internal/
Dper_thread_sem_test.cc51 cv_.wait(lock, [this]() { return count_ > 0; }); in Wait()
53 cv_.notify_one(); in Wait()
63 cv_.notify_one(); in Post()
68 std::condition_variable cv_; member in absl::synchronization_internal::SimpleSemaphore
Dwaiter.cc219 const int err2 = pthread_cond_init(&cv_, 0); in Waiter()
234 const int err2 = pthread_cond_destroy(&cv_); in ~Waiter()
256 const int err = pthread_cond_wait(&cv_, &mu_); in Wait()
261 const int err = pthread_cond_timedwait(&cv_, &mu_, &abs_timeout); in Wait()
291 const int err = pthread_cond_signal(&cv_); in InternalCondVarPoke()
/third_party/boost/libs/beast/test/extras/include/boost/beast/test/
Dyield_to.hpp43 std::condition_variable cv_; member in boost::beast::test::enable_yield_to
116 cv_.wait(lock, [&]{ return running_ == 0; }); in yield_to()
131 cv_.notify_all(); in spawn()
/third_party/grpc/src/cpp/server/
Ddynamic_thread_pool.cc63 cv_.Wait(&mu_); in ThreadFunc()
100 cv_.SignalAll(); in ~DynamicThreadPool()
117 cv_.Signal(); in Add()
/third_party/grpc/test/cpp/end2end/
Dclient_callback_end2end_test.cc312 cv_.notify_one(); in SendGenericEchoAsBidi()
334 cv_.wait(l); in SendGenericEchoAsBidi()
345 std::condition_variable cv_; in SendGenericEchoAsBidi() member in grpc::testing::__anon3934da2c0111::ClientCallbackEnd2endTest::SendGenericEchoAsBidi::Client
704 cv_.notify_one(); in OnDone()
709 cv_.wait(l); in Await()
733 std::condition_variable cv_; member in grpc::testing::__anon3934da2c0111::WriteClient
822 cv_.notify_one(); in TEST_P()
827 cv_.wait(l); in TEST_P()
836 std::condition_variable cv_; in TEST_P() member in grpc::testing::__anon3934da2c0111::TEST_P::UnaryClient
886 cv_.notify_one(); in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dnon_marl_bench.cpp35 cv_.wait(lock, [&] { return signalled_; }); in wait()
42 cv_.notify_all(); in signal()
46 std::condition_variable cv_; member in __anonec395afd0111::Event
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_buffer_mgr.h43 cv_.notify_one(); in Signal()
49 … if (cv_.wait_for(lock, std::chrono::seconds(MAX_WAIT_TIME_IN_SEC)) == std::cv_status::timeout) { in Wait()
59 std::condition_variable cv_; variable
/third_party/grpc/test/core/handshake/
Dserver_ssl_common.cc84 cv_.Signal(); in Activate()
89 cv_.WaitUntil(&mu_, [this] { return ready_; }); in Await()
95 grpc_core::CondVar cv_; member in __anon82a3c2a00111::ServerInfo
/third_party/grpc/test/core/end2end/
Dinproc_callback_test.cc68 gpr_cv_init(&cv_); in ShutdownCallback()
72 gpr_cv_destroy(&cv_); in ~ShutdownCallback()
83 gpr_cv_broadcast(&cv_); in Run()
91 while (!done_ && !gpr_cv_wait(&cv_, &mu_, deadline)) { in Wait()
101 gpr_cv cv_; member in __anonaf55b99f0111::ShutdownCallback

12