Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Refactor for context-awareness#1795

Merged
implausible merged 40 commits intonodegit:masternodegit/nodegit:masterfrom
ianhattendorf:refactor/context-awarenessianhattendorf/nodegit:refactor/context-awarenessCopy head branch name to clipboard
Oct 20, 2020
Merged

Refactor for context-awareness#1795
implausible merged 40 commits intonodegit:masternodegit/nodegit:masterfrom
ianhattendorf:refactor/context-awarenessianhattendorf/nodegit:refactor/context-awarenessCopy head branch name to clipboard

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
generate/templates/manual/src/thread_pool.cc Outdated Show resolved Hide resolved
generate/templates/manual/src/thread_pool.cc Outdated Show resolved Hide resolved
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.