If you want the ability to pick PTHREAD_POOL_SIZE at runtime, you can do
that by setting PTHREAD_POOL_SIZE to something like
"Module.pthreadPoolSize", and build with MODULARIZE. Then you can pass in {
pthreadPoolSize: .. } when you create an instance, and give it the pool
size at runtime there.

(Maybe I didn't understand the description, but if your program itself uses
more threads depending on the size of the file, you may need to make the
program use up to a fixed number of threads.)


On Fri, May 8, 2020 at 8:31 AM Talha Enes Ayrancı <[email protected]>
wrote:

> Hi. I have a image processing app with coding C++. When I compile my codes
> with USE_PTHREAD=1 flag, compiled code is not working. Nothing happening on
> Chrome. And when I add PTHREAD_POOL_SIZE flag, it's working. But my thread
> size is different for every file. Big files are using more threads than
> small sized files. Thread count is increasing to 40-50 and more and more..
> 50 POOL_SIZE is so big value. What can I do?
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/e9909928-b9ad-43e3-bb6e-c83935305ee7%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/e9909928-b9ad-43e3-bb6e-c83935305ee7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTjA6Bu3BjUB8b_bHtUemniO0XXafOf4K8Kh4urMXom5w%40mail.gmail.com.

Reply via email to