Home » U++ Library support » U++ MT-multithreading and servers » Is there a Threadpool in U++?
Is there a Threadpool in U++? [message #39600] |
Wed, 03 April 2013 16:05 |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Hi everyone!
I was wondering, I need a threadpool for my application, or something samiliar to it. I tried CoWork but it doesn't really work, by means of, when using CoWork, the GUI will still always be unresponsive.
My problem is that I need to divide the scanning of memory blocks into multiple threads, but not more then 3~5 simultaniously.
Can anybody help me out?
Thanks in advance!
|
|
|
Re: Is there a Threadpool in U++? [message #39601 is a reply to message #39600] |
Wed, 03 April 2013 17:08 |
|
Hi crydev,
If I remember correctly how CoWork works, then it can be used for what you need. You just have to make sure that GUI can be updated during the computation, e.g. by calling Ctrl::ProcessEvents() in between the iterations. Details depends quite a lot on how exactly you use CoWork.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Fri Apr 19 21:23:05 CEST 2024
Total time taken to generate the page: 1.12825 seconds
|