Skip to content

Commit cf30fca

Browse files
theanarkhRafaelGSS
authored andcommitted
doc: add tip for NODE_MODULE
PR-URL: #45797 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 95ce16d commit cf30fca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/addons.md

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ When building addons with `node-gyp`, using the macro `NODE_GYP_MODULE_NAME` as
107107
the first parameter of `NODE_MODULE()` will ensure that the name of the final
108108
binary will be passed to `NODE_MODULE()`.
109109

110+
Addons defined with `NODE_MODULE()` can not be loaded in multiple contexts or
111+
multiple threads at the same time.
112+
110113
### Context-aware addons
111114

112115
There are environments in which Node.js addons may need to be loaded multiple

0 commit comments

Comments
 (0)