You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a "Module did not self-register" when trying to require("posix-semaphore") in a worker thread (when it was also required by the main thread).
I ran into a "Module did not self-register" when trying to
require("posix-semaphore")
in a worker thread (when it was also required by the main thread).Some searching on the issue led me to these links
nodejs/node#21783 (comment)
https://nodejs.org/api/addons.html#addons_context_aware_addons
I am not familiar with C++ addons, but it looks like using NODE_MODULE_INIT in addon.cc rather than NODE_MODULE might apply here.
I would be happy to help test the change or can work on a PR when I get the time (though logging the issue for now). Thanks
The text was updated successfully, but these errors were encountered: