diff options
| author | James M Snell <jasnell@gmail.com> | 2018-06-10 15:12:11 -0700 |
|---|---|---|
| committer | Anna Henningsen <anna@addaleax.net> | 2018-06-20 16:02:36 +0200 |
| commit | 99e6ecbb17fa9ffef8e77a043e44367810403dbd (patch) | |
| tree | f6523ebec842cac86f94f1fc11050dea619da271 /src/node_worker.h | |
| parent | 3ff1cb955f0af629b9f020aaf1705cb571ecf84b (diff) | |
| download | node-new-99e6ecbb17fa9ffef8e77a043e44367810403dbd.tar.gz | |
workers,trace_events: set thread name for workers
Set the thread name for workers in trace events. Also,
use uint64_t for thread_id_ because there's really no
reason for those to be doubles
PR-URL: https://github.com/nodejs/node/pull/21246
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/node_worker.h')
| -rw-r--r-- | src/node_worker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h index 0a98d2f11e..d802b5cfef 100644 --- a/src/node_worker.h +++ b/src/node_worker.h @@ -62,7 +62,7 @@ class Worker : public AsyncWrap { bool thread_joined_ = true; int exit_code_ = 0; - double thread_id_ = -1; + uint64_t thread_id_ = -1; std::unique_ptr<MessagePortData> child_port_data_; |
