mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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>
This commit is contained in:
1 parent
3ff1cb955f
commit
99e6ecbb17
5 files changed
+51
-9
No files matched your search
+1
-1
@@ -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_;
|
||||
|
||||
|
||||
Reference in new issue
Block a user