#include <isolate.h>
Definition at line 243 of file isolate.h.
◆ DisableIdleTimerScope()
dart::DisableIdleTimerScope::DisableIdleTimerScope |
( |
IdleTimeHandler * |
handler | ) |
|
|
explicit |
Definition at line 245 of file isolate.cc.
246 : handler_(handler) {
247 if (handler_ != nullptr) {
248 MutexLocker ml(&handler_->mutex_);
249 ++handler_->disabled_counter_;
250 handler_->idle_start_time_ = 0;
251 }
252}
◆ ~DisableIdleTimerScope()
dart::DisableIdleTimerScope::~DisableIdleTimerScope |
( |
| ) |
|
Definition at line 254 of file isolate.cc.
254 {
255 if (handler_ != nullptr) {
256 MutexLocker ml(&handler_->mutex_);
257 --handler_->disabled_counter_;
258 ASSERT(handler_->disabled_counter_ >= 0);
259 }
260}
The documentation for this class was generated from the following files: