-
Notifications
You must be signed in to change notification settings - Fork 5k
napi: keep dispatching threadsafe function calls when a callback blocks in a nested event loop #36831
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
Open
robobun
wants to merge
17
commits into
main
Choose a base branch
from
farm/4e5ad0c4/tsfn-nested-wait-deadlock
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
napi: keep dispatching threadsafe function calls when a callback blocks in a nested event loop #36831
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4f0f6d1
napi: keep dispatching threadsafe function calls when a callback bloc…
robobun 969b7eb
napi: schedule the backup dispatch while holding the threadsafe funct…
robobun 33b1117
napi: count the finalize task before publishing it, tighten comments
robobun e6861c5
napi: keep the dispatch path on raw pointers across JS entries
robobun 4244f6e
[autofix.ci] apply automated fixes
autofix-ci[bot] 6d475ca
napi: gate the backup dispatch on the in-flight task count
robobun b9c1ea2
Merge branch 'main' into farm/4e5ad0c4/tsfn-nested-wait-deadlock
robobun 4fe70e3
[autofix.ci] apply automated fixes
autofix-ci[bot] ef9b776
ci: retrigger
robobun 3388ee7
napi: snapshot the callback before the microtask drain, bound Running…
robobun e9902af
napi: satisfy clippy safety-comment lint, trim comments
robobun 726a5fd
napi: extract the locked dequeue into a method to satisfy the fn-long…
robobun db04577
napi: drain microtasks before dequeuing the next threadsafe function …
robobun 69712df
napi: make the in-flight task count the sole gate in schedule_dispatch
robobun d7cb10b
napi: drop the stale caller list from schedule_dispatch's doc
robobun 16dbdfe
test: rebuild the tsfn addon when its sources are newer than the binary
robobun b31f15e
Remove stray file committed by mistake
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.