Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Kozyatinskiy <kozyatinskiy@chromium.org>2018-08-18 04:47:05 +0300
committerAlexey Kozyatinskiy <kozyatinskiy@chromium.org>2018-08-21 04:10:00 +0300
commitb1e26128f317a6f5a5808a0a727e98f80f088b84 (patch)
treeb75efbdab9c37fd573e75d325b848ea84b1ee819 /src/node_platform.h
parentf1d3f97c3bc813528e85b9c3e6506fc75b931d92 (diff)
src: implement v8::Platform::CallDelayedOnWorkerThread
This method is crucial for Runtime.evaluate protocol command with timeout flag. At least Chrome DevTools frontend uses this method for every execution in console. PR-URL: https://github.com/nodejs/node/pull/22383 Fixes: https://github.com/nodejs/node/issues/22157 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_platform.h')
-rw-r--r--src/node_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_platform.h b/src/node_platform.h
index 62301a302b2..69968c49f80 100644
--- a/src/node_platform.h
+++ b/src/node_platform.h
@@ -109,6 +109,10 @@ class WorkerThreadsTaskRunner {
private:
TaskQueue<v8::Task> pending_worker_tasks_;
+
+ class DelayedTaskScheduler;
+ std::unique_ptr<DelayedTaskScheduler> delayed_task_scheduler_;
+
std::vector<std::unique_ptr<uv_thread_t>> threads_;
};