[Lazarus] A few questions on threads

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Tue Oct 4 14:04:34 CEST 2011



On Tue, 4 Oct 2011, Mark Morgan Lloyd wrote:

> michael.vancanneyt at wisa.be wrote:
>
>>> Suspend and Resume have been deprecated, and I want to know how a thread 
>>> can
>>> be suspended.
>> 
>> There is - to my knowledge - no safe way of doing so.
>
> Can a thread safely suspend itself, subject to an external resume? If not, 
> what is the "official" alternative?

A thread can always suspend itself. It's the suspend by another thread that
is dangerous.

Michael.




More information about the Lazarus mailing list