[fpc-pascal] TThread.Suspend
Marco van de Voort
marcov at stack.nl
Thu Jan 30 11:34:35 CET 2014
In our previous episode, Mark Morgan Lloyd said:
> First question: is Start an accurate replacement for Resume,
Yes.
> or can it
> only be used to start a thread created in the suspended state?
Yes.
Both yes, because anything but that was never fully supported with Resume in
the first place.
> Second question: now that Suspend is deprecated, what should a thread do
> if it wants to stop processing pending a subsequent resume?
Add a Tevent, and block on it. IOW nothing built-in.
> I note that http://www.freepascal.org/docs-html/rtl/classes/tthread.html
> gives no indication that Suspend and Resume are deprecated.
I'll leave that to Michael.
More information about the fpc-pascal
mailing list