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'm trying to spin up worker threads (https://nodejs.org/api/worker_threads.html) to take advantage of multiple cpu cores in a project that uses node-cypher-parser, but I get this error:
Error: Module did not self-register: '/Users/Steve/myproject/node_modules/cypher-parser/dist/release/cypher.node'.
Apparently this is to do with native add-ons having to be aware that they might be used from worker threads, and for many modules the fix is relatively simple: nodejs/node#21783 (comment)
I'm trying to spin up worker threads (https://nodejs.org/api/worker_threads.html) to take advantage of multiple cpu cores in a project that uses node-cypher-parser, but I get this error:
Error: Module did not self-register: '/Users/Steve/myproject/node_modules/cypher-parser/dist/release/cypher.node'.
Apparently this is to do with native add-ons having to be aware that they might be used from worker threads, and for many modules the fix is relatively simple: nodejs/node#21783 (comment)
Documentation for context-aware addons and some worker_thread specific stuff about cleaning up resources here:
https://github.com/nodejs/node/blob/main/doc/api/addons.md#context-aware-addons
I will try to fork and PR but I have not done any native before, so I'm not massively confident of success ...
The text was updated successfully, but these errors were encountered: