[fpc-pascal] Use sleep in thread
Philippe at quarta.com.br
Wed Feb 25 17:26:09 CET 2015
synchronising tools do not do what you want?
De: fpc-pascal-bounces at lists.freepascal.org <fpc-pascal-bounces at lists.freepascal.org> em nome de Xiangrong Fang <xrfang at gmail.com>
Enviado: quarta-feira, 25 de fevereiro de 2015 12:33
Para: FPC-Pascal users discussions
Assunto: Re: [fpc-pascal] Use sleep in thread
2015-02-25 23:16 GMT+08:00 <hinstance at yandex.ru<mailto:hinstance at yandex.ru>>:
not sure if this helps, but:
for example, if you want thread T to run using approx. 70% of max. available capacity, try this:
?This seems not what I want. I would like to schedule it from within the thread. My demo program is here:
TAsyncDo is the class I wrote to have a procedure run in parallel.
I want to control priority of the thread from within the worker, not from the main thread. ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal