Skip to content

Commit

Permalink
fix SetIdle deprecation
Browse files Browse the repository at this point in the history
Refs: #46
  • Loading branch information
targos authored and nodejs-ci committed Apr 3, 2018
1 parent 1c6164b commit 8027884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ void Environment::CleanupHandles() {
void Environment::StartProfilerIdleNotifier() {
uv_prepare_start(&idle_prepare_handle_, [](uv_prepare_t* handle) {
Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle);
env->isolate_data()->GetCpuProfiler()->SetIdle(true);
env->isolate()->SetIdle(true);
});

uv_check_start(&idle_check_handle_, [](uv_check_t* handle) {
Environment* env = ContainerOf(&Environment::idle_check_handle_, handle);
env->isolate_data()->GetCpuProfiler()->SetIdle(false);
env->isolate()->SetIdle(false);
});
}

Expand Down

0 comments on commit 8027884

Please sign in to comment.