You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen in the documentation that there are a couple of flags that you can use. I'm currently using -sUSE_PTHREADS.
The documentation suggests using both flags:
--proxy-to-worker + -sUSE_PTHREADS: Synchronous Fetch operations are available both on the main thread and pthreads.
But if I add --proxy-to-worker, I get a compile error saying that the flags are not compatible!
em++: error: --proxy-to-worker is not supported with -s USE_PTHREADS>0! Use the option -s PROXY_TO_PTHREAD=1 if you want to run the main thread of a multithreaded application in a web worker.
I tried adding the flag -s PROXY_TO_PTHREAD=1 as well, but I get the same error.
Could you please help me?
EDIT:
After lots of trial and error, I managed to get it to compile using the following flags combination:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been strugling to do a synchronous download using the fetch API.
I'm not sure if it's possible because I have found some related issues that haven't been resolved:
This is what I'm trying:
The returned pointer is always null.
I have seen in the documentation that there are a couple of flags that you can use. I'm currently using
-sUSE_PTHREADS
.The documentation suggests using both flags:
But if I add
--proxy-to-worker
, I get a compile error saying that the flags are not compatible!I tried adding the flag
-s PROXY_TO_PTHREAD=1
as well, but I get the same error.Could you please help me?
EDIT:
After lots of trial and error, I managed to get it to compile using the following flags combination:
However, it doesn't work when I try to run it:
Beta Was this translation helpful? Give feedback.
All reactions