Skip to content

Commit a955df9

Browse files
committed
doc: add tip for NODE_MODULE
1 parent d579bc1 commit a955df9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/addons.md

Lines changed: 3 additions & 0 deletions
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()` cannot 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)