doc: add tip for NODE_MODULE

PR-URL: https://github.com/nodejs/node/pull/45797
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
theanarkh authored and RafaelGSS committed 2023-01-05 13:11:33 -03:00
1 parent 95ce16d8d9
commit cf30fca23f
1 file changed
+3
+3
View File
@@ -107,6 +107,9 @@ When building addons with `node-gyp`, using the macro `NODE_GYP_MODULE_NAME` as
the first parameter of `NODE_MODULE()` will ensure that the name of the final
binary will be passed to `NODE_MODULE()`.
Addons defined with `NODE_MODULE()` can not be loaded in multiple contexts or
multiple threads at the same time.
### Context-aware addons
There are environments in which Node.js addons may need to be loaded multiple