diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-01-16 21:44:11 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-02-17 21:54:24 +0300 |
commit | f56de5a3b43a224bac6de2fee8d2d6c3a1e4a079 (patch) | |
tree | 59eb04efe6ecd0948797c5a2caa7cbd7bad2ac6a /src/node_worker.h | |
parent | 0cacc1facf77e91affdf69d6c3249aab9838838f (diff) |
src: move MemoryInfo() for worker code to .cc files
This is a) the right thing to do anyway because these functions
can not be inlined by the compiler and b) avoids compilation warnings
in the following commit.
PR-URL: https://github.com/nodejs/node/pull/31386
Refs: https://github.com/openjs-foundation/summit/pull/240
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r-- | src/node_worker.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_worker.h b/src/node_worker.h index 6db7b258ebd..f84362f35c1 100644 --- a/src/node_worker.h +++ b/src/node_worker.h @@ -39,13 +39,10 @@ class Worker : public AsyncWrap { // Wait for the worker thread to stop (in a blocking manner). void JoinThread(); - void MemoryInfo(MemoryTracker* tracker) const override { - tracker->TrackField("parent_port", parent_port_); - } - template <typename Fn> inline bool RequestInterrupt(Fn&& cb); + void MemoryInfo(MemoryTracker* tracker) const override; SET_MEMORY_INFO_NAME(Worker) SET_SELF_SIZE(Worker) |