Home
last modified time | relevance | path

Searched refs:timer_ (Results 1 – 25 of 34) sorted by relevance

12

/third_party/node/src/
Dtimer_wrap.cc11 if (timer_.data == nullptr) return; in Stop()
12 uv_timer_stop(&timer_); in Stop()
16 timer_.data = nullptr; in Close()
17 env_->CloseHandle(reinterpret_cast<uv_handle_t*>(&timer_), TimerClosedCb); in Close()
22 ContainerOf(&TimerWrap::timer_, in TimerClosedCb()
27 if (timer_.data == nullptr) return; in Update()
28 uv_timer_start(&timer_, OnTimeout, interval, repeat); in Update()
32 if (timer_.data == nullptr) return; in Ref()
33 uv_ref(reinterpret_cast<uv_handle_t*>(&timer_)); in Ref()
37 if (timer_.data == nullptr) return; in Unref()
[all …]
Dtimer_wrap-inl.h18 uv_timer_init(env->event_loop(), &timer_); in TimerWrap()
19 timer_.data = this; in TimerWrap()
24 timer_ = new TimerWrap(env, std::forward<Args>(args)...); in TimerWrapHandle()
Dtimer_wrap.h48 uv_timer_t timer_; variable
78 TimerWrap* timer_; variable
Dnode_watchdog.cc58 rc = uv_timer_init(&loop_, &timer_); in Watchdog()
61 rc = uv_timer_start(&timer_, &Watchdog::Timer, ms, 0); in Watchdog()
91 uv_close(reinterpret_cast<uv_handle_t*>(&wd->timer_), nullptr); in Run()
95 Watchdog* w = ContainerOf(&Watchdog::timer_, timer); in Timer()
Dhistogram.cc432 reinterpret_cast<uv_handle_t*>(&timer_), in IntervalHistogram()
438 uv_timer_init(env->event_loop(), &timer_); in IntervalHistogram()
464 ContainerOf(&IntervalHistogram::timer_, handle); in TimerCB()
480 uv_timer_start(&timer_, TimerCB, interval_, interval_); in OnStart()
481 uv_unref(reinterpret_cast<uv_handle_t*>(&timer_)); in OnStart()
487 uv_timer_stop(&timer_); in OnStop()
Dnode_watchdog.h61 uv_timer_t timer_; variable
/third_party/nghttp2/src/
Dshrpx_connect_blocker.cc51 ev_timer_init(&timer_, connect_blocker_cb, 0., 0.); in ConnectBlocker()
52 timer_.data = this; in ConnectBlocker()
55 ConnectBlocker::~ConnectBlocker() { ev_timer_stop(loop_, &timer_); } in ~ConnectBlocker()
57 bool ConnectBlocker::blocked() const { return ev_is_active(&timer_); } in blocked()
60 if (ev_is_active(&timer_)) { in on_success()
76 if (ev_is_active(&timer_)) { in on_failure()
97 ev_timer_set(&timer_, backoff, 0.); in on_failure()
98 ev_timer_start(loop_, &timer_); in on_failure()
108 if (!ev_is_active(&timer_)) { in offline()
114 ev_timer_stop(loop_, &timer_); in offline()
[all …]
Dshrpx_dns_resolver.cc123 ev_timer_init(&timer_, timeoutcb, 0., 0.);
124 timer_.data = this;
135 ev_timer_stop(loop_, &timer_); in ~DNSResolver()
223 timer_.repeat = tv->tv_sec + tv->tv_usec / 1000000. + 1e-9; in reset_timeout()
224 ev_timer_again(loop_, &timer_); in reset_timeout()
291 ev_timer_stop(loop_, &timer_); in on_result()
Dshrpx_connect_blocker.h75 ev_timer timer_; variable
Dshrpx_dns_resolver.h105 ev_timer timer_; variable
Dshrpx_http3_upstream.h160 ev_timer timer_; variable
/third_party/node/deps/v8/src/heap/
Dcollection-barrier.cc30 CHECK(!timer_.IsStarted()); in TryRequestGC()
31 timer_.Start(); in TryRequestGC()
57 if (timer_.IsStarted()) timer_.Stop(); in NotifyShutdownRequested()
64 DCHECK(!timer_.IsStarted()); in ResumeThreadsAwaitingCollection()
73 if (timer_.IsStarted()) timer_.Stop(); in CancelCollectionAndResumeThreads()
94 CHECK(timer_.IsStarted()); in AwaitCollectionBackground()
128 CHECK(timer_.IsStarted()); in StopTimeToCollectionTimer()
129 base::TimeDelta delta = timer_.Elapsed(); in StopTimeToCollectionTimer()
138 timer_.Stop(); in StopTimeToCollectionTimer()
Dgc-tracer-inl.h44 runtime_stats_->Enter(&timer_, GCTracer::RCSCounterFromScope(scope)); in Scope()
49 runtime_stats_->Enter(&timer_, GCTracer::RCSCounterFromScope(scope)); in Scope()
76 runtime_stats_->Leave(&timer_); in ~Scope()
Dcollection-barrier.h58 base::ElapsedTimer timer_; variable
/third_party/node/deps/v8/src/logging/
Dcounters-scopes.h22 timer_.Start(); in StartInternal()
27 histogram_->AddTimedSample(timer_.Elapsed()); in StopInternal()
28 timer_.Stop(); in StopInternal()
49 base::ElapsedTimer timer_; variable
106 timer_.Start(); in LazyTimedHistogramScope()
137 timer_.Start(now); in StartInteral()
143 base::TimeDelta elapsed = timer_.Elapsed(now); in StopInternal()
149 timer_.Stop(); in StopInternal()
166 timer_.Pause(now); in Pause()
171 timer_.Resume(now); in Resume()
Druntime-call-stats-scope.h30 stats_->Enter(&timer_, counter_id); in RuntimeCallTimerScope()
44 stats_->Enter(&timer_, counter_id); in RuntimeCallTimerScope()
Dcounters.h358 timer_.Start(); in AggregatedHistogramTimerScope()
360 ~AggregatedHistogramTimerScope() { histogram_->Add(timer_.Elapsed()); } in ~AggregatedHistogramTimerScope()
363 base::ElapsedTimer timer_;
Druntime-call-stats.h745 stats_->Enter(&timer_, counter_id);
750 stats_->Leave(&timer_); in ~RuntimeCallTimerScope()
759 RuntimeCallTimer timer_; variable
/third_party/cef/tests/shared/browser/
Dmain_message_loop_external_pump_mac.mm39 bool IsTimerPending() override { return timer_ != nil; }
46 NSTimer* timer_;
87 : owner_thread_([NSThread currentThread]), timer_(nil) {
149 DCHECK(!timer_);
152 timer_ = [NSTimer timerWithTimeInterval:delay_s
158 [timer_ retain];
163 [owner_runloop addTimer:timer_ forMode:NSRunLoopCommonModes];
164 [owner_runloop addTimer:timer_ forMode:NSEventTrackingRunLoopMode];
168 if (timer_ != nil) {
169 [timer_ invalidate];
[all …]
/third_party/node/deps/v8/src/compiler/
Dpipeline-statistics.cc24 timer_.Start(); in Begin()
38 diff->delta_ = timer_.Elapsed(); in End()
47 timer_.Stop(); in End()
Dpipeline-statistics.h56 base::ElapsedTimer timer_; variable
/third_party/node/test/cctest/
Dtest_inspector_socket_server.cc44 uv_timer_init(loop, &timer_); in Timeout()
45 uv_timer_start(&timer_, Timeout::set_flag, 5000, 0); in Timeout()
46 uv_unref(reinterpret_cast<uv_handle_t*>(&timer_)); in Timeout()
50 uv_timer_stop(&timer_); in ~Timeout()
51 uv_close(reinterpret_cast<uv_handle_t*>(&timer_), mark_done); in ~Timeout()
60 Timeout* t = node::ContainerOf(&Timeout::timer_, timer); in set_flag()
65 Timeout* t = node::ContainerOf(&Timeout::timer_, in mark_done()
71 uv_timer_t timer_; member in __anon965b89240111::Timeout
Dtest_inspector_socket.cc20 uv_timer_init(loop, &timer_); in Timeout()
21 uv_timer_start(&timer_, Timeout::set_flag, 5000, 0); in Timeout()
25 uv_timer_stop(&timer_); in ~Timeout()
26 uv_close(reinterpret_cast<uv_handle_t*>(&timer_), mark_done); in ~Timeout()
36 Timeout* t = node::ContainerOf(&Timeout::timer_, timer); in set_flag()
41 Timeout* t = node::ContainerOf(&Timeout::timer_, in mark_done()
47 uv_timer_t timer_; member in __anon35db90ae0111::Timeout
/third_party/benchmark/src/
Dbenchmark.cc150 timer_(timer), in State()
185 timer_->StopTimer(); in PauseTiming()
199 timer_->StartTimer(); in ResumeTiming()
216 if (timer_->running()) timer_->StopTimer(); in SkipWithError()
220 timer_->SetIterationTime(seconds); in SetIterationTime()
/third_party/node/deps/v8/src/codegen/
Dcompiler.h255 timer_.Start(); in CompilationJob()
263 return timer_.Elapsed(); in ElapsedTime()
283 base::ElapsedTimer timer_; variable
554 TimedHistogram* timer_; variable

12