Skip to content

Commit b7f7651

Browse files
authored
doc: add tip for NODE_MODULE
PR-URL: #45797 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 1d6fda0 commit b7f7651

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)