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:
authorAnna Henningsen <anna@addaleax.net>2019-11-11 17:24:13 +0300
committerAnna Henningsen <anna@addaleax.net>2020-03-21 12:57:20 +0300
commita9fb51f9be570001accfce8a057e885827655a2f (patch)
tree5a2325de3a8701e57c8532010e43260e503d6417 /src/node_worker.h
parent084c3796483a15da102480b2c5a1496417b5d7cf (diff)
src: align worker and main thread code with embedder API
This addresses some long-standing TODOs by Joyee and me about making the embedder API more powerful and us less reliant on internal APIs for creating the main thread and Workers. PR-URL: https://github.com/nodejs/node/pull/30467 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index dbd28610994..384a9f160e0 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -73,12 +73,9 @@ class Worker : public AsyncWrap {
MultiIsolatePlatform* platform_;
v8::Isolate* isolate_ = nullptr;
- bool start_profiler_idle_notifier_;
uv_thread_t tid_;
-#if HAVE_INSPECTOR
- std::unique_ptr<inspector::ParentInspectorHandle> inspector_parent_handle_;
-#endif
+ std::unique_ptr<InspectorParentHandle> inspector_parent_handle_;
// This mutex protects access to all variables listed below it.
mutable Mutex mutex_;
@@ -88,7 +85,7 @@ class Worker : public AsyncWrap {
std::string custom_error_str_;
bool loop_init_failed_ = false;
int exit_code_ = 0;
- uint64_t thread_id_ = -1;
+ ThreadId thread_id_;
uintptr_t stack_base_ = 0;
// Custom resource constraints: