On 15 Oct 2010, at 22:31, Vinzent Höfler wrote:

> - Suspend/Resume should be gone (you can't guarantee it to work,
>  so there's no point in doing it at all)

FWIW, they're deprecated since Delphi 2009, so they will disappear over time. 
To resume a tthread created with fcreatesuspended=true, they introduced a new 
"Start" method (which does basically the same as Resume, but it's not 
deprecated).

> - FreeOnTerminate should be gone, (meaning no way to actively call
>  TThread.Destroy from another thread, a thread gets destroyed
>  automatically when it leaves its execute method)
>  (IIRC FreeOnTerminate was even set to False by the default
>   constructor, so you had the choice of either using the default
>   or introducing a race condition by setting it after the
>   "inherited Create" - which starts the execute.)

This problem has been solved with http://bugs.freepascal.org/view.php?id=16884


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

Reply via email to