diff options
author | James M Snell <jasnell@gmail.com> | 2018-06-10 15:12:11 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-06-15 09:14:19 -0700 |
commit | a24b691c6cfb31bc77f5d0cd64596106dc21d890 (patch) | |
tree | 5d83cd297efebb016e27e90cf9e670f6af666af9 /src/env-inl.h | |
parent | b55f6a0f010da7f2f812b0956283a1d58ebe1ff1 (diff) | |
download | android-node-v8-a24b691c6cfb31bc77f5d0cd64596106dc21d890.tar.gz android-node-v8-a24b691c6cfb31bc77f5d0cd64596106dc21d890.tar.bz2 android-node-v8-a24b691c6cfb31bc77f5d0cd64596106dc21d890.zip |
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>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index c84fdf0bb8..bbb80c6f7a 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -598,11 +598,11 @@ inline bool Environment::is_main_thread() const { return thread_id_ == 0; } -inline double Environment::thread_id() const { +inline uint64_t Environment::thread_id() const { return thread_id_; } -inline void Environment::set_thread_id(double id) { +inline void Environment::set_thread_id(uint64_t id) { thread_id_ = id; } |