Home
last modified time | relevance | path

Searched refs:alarm_ (Results 1 – 20 of 20) sorted by relevance

/external/openscreen/util/
Dalarm.cc13 explicit CancelableFunctor(Alarm* alarm) : alarm_(alarm) { in CancelableFunctor()
14 OSP_DCHECK(alarm_); in CancelableFunctor()
15 OSP_DCHECK(!alarm_->queued_fire_); in CancelableFunctor()
16 alarm_->queued_fire_ = this; in CancelableFunctor()
21 CancelableFunctor(CancelableFunctor&& other) : alarm_(other.alarm_) { in CancelableFunctor()
22 other.alarm_ = nullptr; in CancelableFunctor()
23 if (alarm_) { in CancelableFunctor()
24 OSP_DCHECK_EQ(alarm_->queued_fire_, &other); in CancelableFunctor()
25 alarm_->queued_fire_ = this; in CancelableFunctor()
31 alarm_ = other.alarm_; in operator =()
[all …]
Dalarm_unittest.cc22 Alarm* alarm() { return &alarm_; } in alarm()
27 Alarm alarm_{&FakeClock::now, &task_runner_}; member in openscreen::__anon6156f3060111::AlarmTest
/external/grpc-grpc/include/grpcpp/
Dalarm.h70 Alarm(Alarm&& rhs) : alarm_(rhs.alarm_) { rhs.alarm_ = nullptr; } in Alarm()
72 alarm_ = rhs.alarm_;
73 rhs.alarm_ = nullptr;
86 explicit experimental_type(Alarm* alarm) : alarm_(alarm) {} in experimental_type()
93 alarm_->SetInternal(TimePoint<T>(deadline).raw_time(), std::move(f)); in Set()
97 Alarm* alarm_;
109 internal::CompletionQueueTag* alarm_; variable
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/
Dalarm.h69 Alarm(Alarm&& rhs) noexcept : alarm_(rhs.alarm_) { rhs.alarm_ = nullptr; } in Alarm()
71 alarm_ = rhs.alarm_;
72 rhs.alarm_ = nullptr;
95 explicit experimental_type(Alarm* alarm) : alarm_(alarm) {} in experimental_type()
102 alarm_->SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), in Set()
107 Alarm* alarm_;
120 ::grpc::internal::CompletionQueueTag* alarm_;
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/
Dalarm.h69 Alarm(Alarm&& rhs) noexcept : alarm_(rhs.alarm_) { rhs.alarm_ = nullptr; } in Alarm()
71 alarm_ = rhs.alarm_;
72 rhs.alarm_ = nullptr;
95 explicit experimental_type(Alarm* alarm) : alarm_(alarm) {} in experimental_type()
102 alarm_->SetInternal(::grpc::TimePoint<T>(deadline).raw_time(), in Set()
107 Alarm* alarm_;
120 ::grpc::internal::CompletionQueueTag* alarm_;
/external/webrtc/test/time_controller/
Dexternal_time_controller.cc175 : alarm_(alarm), in ExternalTimeController()
176 impl_(alarm_->GetClock()->CurrentTime()), in ExternalTimeController()
178 global_clock_.SetTime(alarm_->GetClock()->CurrentTime()); in ExternalTimeController()
179 alarm_->SetCallback([this] { Run(); }); in ExternalTimeController()
183 return alarm_->GetClock(); in GetClock()
197 alarm_->Sleep(duration); in AdvanceTime()
229 Timestamp now = alarm_->GetClock()->CurrentTime(); in UpdateTime()
235 RTC_DCHECK_EQ(impl_.CurrentTime(), alarm_->GetClock()->CurrentTime()); in ScheduleNext()
239 alarm_->ScheduleAlarmAt(alarm_->GetClock()->CurrentTime() + delay); in ScheduleNext()
Dexternal_time_controller.h62 ControlledAlarmClock* alarm_; variable
/external/openscreen/discovery/mdns/
Dmdns_probe.cc39 alarm_(now_function_, task_runner_), in MdnsProbeImpl()
50 alarm_.ScheduleFromNow([this]() { ProbeOnce(); }, in MdnsProbeImpl()
73 alarm_.ScheduleFromNow([this]() { ProbeOnce(); }, in ProbeOnce()
85 alarm_.Cancel(); in Stop()
95 alarm_.Cancel(); in Postpone()
96 alarm_.ScheduleFromNow([this]() { ProbeOnce(); }, Clock::to_duration(delay)); in Postpone()
Dmdns_publisher.cc258 alarm_(now_function_, task_runner_), in RecordAnnouncer()
268 alarm_.Cancel(); in ~RecordAnnouncer()
291 alarm_.ScheduleFromNow([this]() { QueueAnnouncement(); }, new_delay); in QueueAnnouncement()
Dmdns_responder.cc301 alarm_(now_function, task_runner) { in TruncatedQuery()
334 alarm_.Cancel(); in RescheduleSend()
351 alarm_.ScheduleFromNow([this]() { SendResponse(); }, send_delay); in RescheduleSend()
355 alarm_.Cancel(); in SendResponse()
Dmdns_probe.h114 Alarm alarm_; variable
Dmdns_publisher.h135 Alarm alarm_; variable
Dmdns_responder.h127 Alarm alarm_; variable
/external/grpc-grpc/src/cpp/common/
Dalarm.cc119 Alarm::Alarm() : alarm_(new internal::AlarmImpl()) { in Alarm()
129 static_cast<internal::AlarmImpl*>(alarm_)->Set(cq, deadline, tag); in SetInternal()
138 static_cast<internal::AlarmImpl*>(alarm_)->Set(deadline, std::move(f)); in SetInternal()
142 if (alarm_ != nullptr) { in ~Alarm()
143 static_cast<internal::AlarmImpl*>(alarm_)->Destroy(); in ~Alarm()
147 void Alarm::Cancel() { static_cast<internal::AlarmImpl*>(alarm_)->Cancel(); } in Cancel()
/external/rust/crates/grpcio-sys/grpc/src/cpp/common/
Dalarm.cc131 Alarm::Alarm() : alarm_(new internal::AlarmImpl()) { in Alarm()
142 static_cast<internal::AlarmImpl*>(alarm_)->Set(cq, deadline, tag); in SetInternal()
151 static_cast<internal::AlarmImpl*>(alarm_)->Set(deadline, std::move(f)); in SetInternal()
155 if (alarm_ != nullptr) { in ~Alarm()
156 static_cast<internal::AlarmImpl*>(alarm_)->Destroy(); in ~Alarm()
160 void Alarm::Cancel() { static_cast<internal::AlarmImpl*>(alarm_)->Cancel(); } in Cancel()
/external/openscreen/cast/standalone_receiver/
Dsdl_glue.cc17 : alarm_(&Clock::now, task_runner), in SDLEventLoopProcessor()
19 alarm_.Schedule([this] { ProcessPendingEvents(); }, Alarm::kImmediately); in SDLEventLoopProcessor()
38 alarm_.ScheduleFromNow([this] { ProcessPendingEvents(); }, kEventPollPeriod); in ProcessPendingEvents()
Dsdl_glue.h72 Alarm alarm_; variable
/external/grpc-grpc/test/cpp/qps/
Dclient_async.cc122 std::unique_ptr<Alarm> alarm_; member in grpc::testing::ClientRpcContextUnaryImpl
143 alarm_.reset(new Alarm); in StartInternal()
144 alarm_->Set(cq_, next_issue_(), ClientRpcContext::tag(this)); in StartInternal()
372 alarm_.reset(new Alarm); in RunNextState()
373 alarm_->Set(cq_, next_issue_(), ClientRpcContext::tag(this)); in RunNextState()
437 std::unique_ptr<Alarm> alarm_; member in grpc::testing::ClientRpcContextStreamingPingPongImpl
556 alarm_.reset(new Alarm); in RunNextState()
557 alarm_->Set(cq_, next_issue_(), ClientRpcContext::tag(this)); in RunNextState()
592 std::unique_ptr<Alarm> alarm_; member in grpc::testing::ClientRpcContextStreamingFromClientImpl
712 std::unique_ptr<Alarm> alarm_; member in grpc::testing::ClientRpcContextStreamingFromServerImpl
[all …]
/external/openscreen/cast/streaming/
Dsender_packet_router.cc43 alarm_(environment_->now_function(), environment_->task_runner()) { in SenderPacketRouter()
148 alarm_.Cancel(); in ScheduleNextBurst()
150 alarm_.Schedule([this] { SendBurstOfPackets(); }, next_burst_time); in ScheduleNextBurst()
Dsender_packet_router.h182 Alarm alarm_; variable