Yes, exactly my program itself uses more threads depending on the size of 
the file. (Actually not file size, is depending the content of the file but 
doesn't matter.) 

Why we need to pick PTHREAD_POOL_SIZE ? According to this topic 
<https://emscripten.org/docs/porting/pthreads.html?highlight=pthread#compiling-with-pthreads-enabled>,
 
this flag is predefining pool size before main() calling and I don't have a 
main function. I am calling Embinded functions from Javascript side.

8 Mayıs 2020 Cuma 23:42:35 UTC+3 tarihinde Alon Zakai yazdı:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> 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/1e02846d-2b3e-47a8-bed0-cd447b95f07e%40googlegroups.com.

Reply via email to