-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Worker threads and Native addons requiring #25662
Copy link
Copy link
Closed
Labels
addonsIssues and PRs related to native addons.Issues and PRs related to native addons.questionIssues asking questions about Node.js.Issues asking questions about Node.js.workerIssues and PRs related to the worker_threads module and Worker API.Issues and PRs related to the worker_threads module and Worker API.
Description
Activity
Metadata
Metadata
Assignees
Labels
addonsIssues and PRs related to native addons.Issues and PRs related to native addons.questionIssues asking questions about Node.js.Issues asking questions about Node.js.workerIssues and PRs related to the worker_threads module and Worker API.Issues and PRs related to the worker_threads module and Worker API.
Hi everyone !
I'm facing a problem using worker thread API and native addon (c++).
My purpose is to call native addon functions in a seperate thread to avoid blocking the main thread.
To do that i need to require my addon in each thread i'm creating but i have the error :
Error: Module did not self-register.
As it's written in the documentation, the worker_thread API doesn't support native addon for now..
My question is do you have an estimation date of this feature ?
Thanks.
Node: 10.15
Addon: c++ / node-gyp / node_addon_api