mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
95ce16d8d9
commit
cf30fca23f
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user