[fpc-pascal] TThread.Suspend
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Thu Jan 30 11:30:48 CET 2014
First question: is Start an accurate replacement for Resume, or can it
only be used to start a thread created in the suspended state?
Second question: now that Suspend is deprecated, what should a thread do
if it wants to stop processing pending a subsequent resume? Please note
that I'm asking about a thread suspending itself: I'm aware of the
issues that argue against external suspension (on platforms where this
is possible).
I note that http://www.freepascal.org/docs-html/rtl/classes/tthread.html
gives no indication that Suspend and Resume are deprecated.
The usage case is a system emulating multiple processors. If any
processor other than the first recognises certain conditions it is to
stop running, pending notification from the first processor that (e.g.)
an interrupt has been handled.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list