-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[wasm-mt] Add MessageChannel between browser thread and new pthreads #70908
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
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
474b50d
outline of a dedicated channel between JS main thread and pthreads
lambdageek cfe28f5
add JS entrypoints for pthread-channel
lambdageek f1faae9
WIP: wire up the MessageChannel to native thread attach
lambdageek b948e7b
debug printfs etc
lambdageek 5ebe918
more printfs
lambdageek 6caafa5
comment out the thread start.
lambdageek f47f173
split up into pthread-channel module into worker, browser and shared
lambdageek 4d21b70
WIP: pthreads modules
lambdageek cca2c90
add ENVIRONMENT_IS_PTHREAD; mono_wasm_pthread_worker_init
lambdageek b7754db
Fixup names; call MessagePort.start; remove printfs
lambdageek 76765e2
remove whitespace and extra printfs
lambdageek 7634ea4
Exclude threading exports in non-threaded runtime
lambdageek 064013e
Add replacement for PThread.loadWasmModuleToWorker
lambdageek ed1fb70
Simplify the dedicated channel creation
lambdageek 8ef3be4
Don't forget the GC transition out to JS
lambdageek 1162d2f
fixup rebase
lambdageek 8aaf524
less code golf
lambdageek d65c1d9
Merge remote-tracking branch 'origin/main' into wasm-mt-channels
lambdageek fe65255
fix browser-eventpipe default import
lambdageek 60a4d0f
move mono_threads_wasm_on_thread_attached later in register_thread
lambdageek 75b70fa
also fix default import in browser-mt-eventpipe
lambdageek 60e3cf5
Add replacement for Module.PThread.threadInit
lambdageek 72c84f9
Cleanup mono_wasm_pthread_on_pthread_created
lambdageek 954b2b8
fix comment
lambdageek f92cf3f
Share tsconfig parts using "extends" property
lambdageek 72ae535
Use an EventTarget and custom events for worker thread lifecycle noti…
lambdageek 4977e4d
pass portToMain in ThreadEvents; update README
lambdageek 9113b62
make pthread/worker/events friendlier to tree shaking and node
lambdageek 1b432c1
remove comment out old code
lambdageek 17cef55
another approach to tree shaking
lambdageek 6c820f0
more treeshaking
lambdageek 37841da
fix annoying VSCode ESLint toast
lambdageek ae21694
Add Event and EventTarget polyfill for v8
lambdageek a4a0e3c
fix whitespace and comments
lambdageek 9f6e7b0
Merge remote-tracking branch 'origin/main' into wasm-mt-channels
lambdageek 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.