FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactor for context-awareness by ianhattendorf · Pull Request #1795 · nodegit/nodegit · GitHub

Refactor for context-awareness - #1795

Merged
implausible merged 40 commits into
nodegit:masterfrom
ianhattendorf:refactor/context-awareness
Oct 20, 2020
Merged

Refactor for context-awareness#1795
implausible merged 40 commits into
nodegit:masterfrom
ianhattendorf:refactor/context-awareness

Conversation

Copy link
Copy Markdown
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 commented Oct 19, 2020
edited
Loading

Copy link
Copy Markdown
Member

hooo weee...

implausible merged commit 5e04ffa into nodegit:master Oct 20, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL