diff options
author | Alexey Kozyatinskiy <kozyatinskiy@chromium.org> | 2018-08-18 04:47:05 +0300 |
---|---|---|
committer | Alexey Kozyatinskiy <kozyatinskiy@chromium.org> | 2018-08-21 04:10:00 +0300 |
commit | b1e26128f317a6f5a5808a0a727e98f80f088b84 (patch) | |
tree | b75efbdab9c37fd573e75d325b848ea84b1ee819 /src/node_platform.h | |
parent | f1d3f97c3bc813528e85b9c3e6506fc75b931d92 (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.h | 4 |
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_; }; |