[Lazarus] A few questions on threads

Lukasz Sokol el.es.cr at gmail.com
Tue Oct 4 13:47:07 CEST 2011


On 04/10/2011 10:43, 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.
> 

The thread could start spinning/sleeping on a /safe/ place in its code ?
But that'll require another variable to tell it to do that ?

(or: 2 variables of type Set of (tsRun, tsPause, tsTerminate)
 (and (tsRunning, tsPaused, tsTerminating) ?) ) - one for signalling to
the thread and the other to signal its current state to the world...?

L.

> 
> Michael.





More information about the Lazarus mailing list