Skip to content

Conversation

@ianhattendorf
Copy link
Member

TLDR:

  • worker_thread support!
  • Electron support when app.allowRendererProcessReuse=true

Fixes #1774

implausible and others added 30 commits August 25, 2020 15:01
Until node understands how to cleanup a native node module asynchronously, we cannot allow nodegit to operate in a worker thread or it will die on exit.

Other concerns... Process reuse in Electron may be a problem without async cleanup being a real thing.
We aren't allowed to call back to JavaScript in this case
Ensure baton data members are value initialized (since batons are trivial types)
We already lock in AcquireLocks
RHEL 7 is still fairly popular and on GCC 4.8.x
Windows fails to shutdown synchronously, so shutdown asynchronously. This is only supported by node 14.10+ currently. Should be backported to LTS releases shortly
@implausible
Copy link
Member

implausible commented Oct 19, 2020

hooo weee...

@implausible implausible merged commit 5e04ffa into nodegit:master Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make nodegit context-aware for compatibility with Electron 9 and beyond

2 participants