nodejs / node-addon-examples

Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Share memory between worker threads

Patick-Bateman opened this issue · comments

Hi. I'm trying to implement a native add-on that act as a "queryable cache". Cache can be partially invalidated/updated, and can be accessed by each separate thread. So each thread will be able to do queries agains same cache, not a copy of it. Is this possible with NAPI?

Believe this was answered in nodejs/node-addon-api#1057, closing. Please let us know if you think that was not the right thing to do.