[fpc-pascal] TThread.Suspend under Linux

Michael Van Canneyt michael at freepascal.org
Sat Jun 2 15:41:45 CEST 2007



On Sat, 2 Jun 2007, Graeme Geldenhuys wrote:

> On 6/2/07, Michael Van Canneyt <michael at freepascal.org> wrote:
> > > Just to clarify: don't use .Suspend on another thread. Suspending yourself
> > > and
> > > letting someone else wake you up again is no problem.
> >
> > Except that it doesn't work on Linux.
> 
> Nope, that works fine here!  My worker thread counts down from 10 to
> 0.  I called suspend when the counter reached 5.
> 
> Resumed the worker thread from the GUI thread and it continued counting to 0.

Excellent, then :-)

I wrongly assumed it still used the old STOP/CONTINUE signal method.
My apologies.

Michael.



More information about the fpc-pascal mailing list