diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-05-22 19:42:25 +0300 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-05-23 18:51:33 +0300 |
commit | 6ded4f2bad519d2c201c855b9ba87095bc29d71b (patch) | |
tree | 509c246445663d1100422911b4a0c786c16e1da8 /src/node_api.cc | |
parent | cb1687241671732e91959c67202efa73139bd1e8 (diff) |
src: move ThreadPoolWork inlines into a -inl.h
The presence of the inline definitions in node_internals.h can cause all
files that include node_internals.h to depend on util-inl.h, even if
they never use ThreadPoolWork. Whether this happens depends on the
toolchain, gcc will strip unused definitions, clang won't.
PR-URL: https://github.com/nodejs/node/pull/27755
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_api.cc')
-rw-r--r-- | src/node_api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_api.cc b/src/node_api.cc index f8b0d8b5503..a6dc4615cab 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -6,6 +6,7 @@ #include "node_binding.h" #include "node_errors.h" #include "node_internals.h" +#include "threadpoolwork-inl.h" #include "util-inl.h" #include <memory> |