Skip to content

Commit

Permalink
doc: add tip for NODE_MODULE
Browse files Browse the repository at this point in the history
PR-URL: #45797
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
  • Loading branch information
theanarkh authored and juanarbol committed Jan 24, 2023
1 parent 7cb6fef commit d94dba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/addons.md
Expand Up @@ -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
Expand Down

0 comments on commit d94dba9

Please sign in to comment.