On Sat, 16 Oct 2010 17:42:03 +0200, Luca Olivetti <l...@ventoso.org> wrote:

Al 16/10/10 16:57, En/na Vinzent Höfler ha escrit:


Well, the usual implementation of an externally called "Destroy" is

- first a call to the Terminate method
- then a WaitFor()

Nope, I avoid the WaitFor.

Nice for you, but I'd rather avoid polling solutions.

I usually do a

   while not FFinished do
     CheckSynchronize(100);

Check again. You can't even access FFinished from a foreign thread.


Vinzent.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to