Skip to content

Support for worker_threads #59

Description

@femanzo

Hi, I was getting an error (Module did not self-register) when while running this package inside a Worker thread, I have fixed it by changing:

NODE_MODULE(tulind, Init)

to

NODE_MODULE_INIT()
{
  Init(exports);
}

on the tulind.cpp file, then rebuilding with node-pre-gyp install --build-from-source

I'm still testing, but it seems to be working fine.
I didn't make a pull request because I don't want to mess up your code with my linters, but It would be nice to have this change on the main repo, in case anybody is having the same issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions