Skip to content

Commit

Permalink
doc: add tip for NODE_MODULE
Browse files Browse the repository at this point in the history
  • Loading branch information
theanarkh committed Dec 16, 2022
1 parent d579bc1 commit 430b58f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/addons.md
Original file line number Diff line number Diff line change
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 430b58f

Please sign in to comment.