Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Michael Van Canneyt
On Thu, 30 Jan 2014, Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: 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 i

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: 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

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > > 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?

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Michael Schnell
On 01/30/2014 01:24 PM, Mark Morgan Lloyd wrote: OK, noted. But as a stylistic point it seems to me that this very basic functionality has been ripped out of the RTL (Classes.TThread) and moved into the FCL (Syncobjs.TEvent) leaving no adequate substitute. IMHO "Suspend" never was a good ide

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
Marco van de Voort wrote: 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 Res

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Michael Van Canneyt
On Thu, 30 Jan 2014, Mark Morgan Lloyd wrote: 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

Re: [fpc-pascal] TThread.Suspend

2014-01-30 Thread Marco van de Voort
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.

[fpc-pascal] TThread.Suspend

2014-01-30 Thread Mark Morgan Lloyd
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