X Tutup
The Wayback Machine - https://web.archive.org/web/20200916183637/https://github.com/nodegit/nodegit/pull/1795
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor for context-awareness #1795

Open
wants to merge 38 commits into
base: master
from

Conversation

@ianhattendorf
Copy link
Contributor

ianhattendorf commented Sep 11, 2020

TLDR:

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

Fixes #1774

implausible and others added 30 commits Jul 31, 2020
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
ianhattendorf and others added 4 commits Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.
X Tutup