Skip to content

Pthreads no longer allow user to have custom instantiateWasm function #22905

Answered by sbc100
shinji-TH asked this question in Q&A
Discussion options

You must be logged in to vote

I just landed a change the re-introduces instantiateWasm in pthread workers: #22912

However, even after this change I fear that #21701 may have change pthread creations in other ways that break your use case since urlOrBlob is not longer passed to new workers. mainScriptUrlOrBlob can still be used to tell emscripten how to find main script, but this is then used directly to create new workers rather then passed as an argument to the separate worker.js file (which no longer exists).

Perhaps you can say more about what you are trying to do in your instantiateWasm withing your pthread workers? Pthread workers already have access to the wasm module directly so they should know how to instanti…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
15 replies
@sbc100
Comment options

@shinji-TH
Comment options

@sbc100
Comment options

Answer selected by shinji-TH
@shinji-TH
Comment options

@sbc100
Comment options

@shinji-TH
Comment options

@sbc100
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants