[fpc-pascal] TThread.Suspend

Marco van de Voort marcov at stack.nl
Thu Jan 30 13:30:41 CET 2014


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?
> > 
> > Add a Tevent, and block on it. IOW nothing built-in.
> 
> 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.

Classes was originally FCL too. That kind of thinking of RTL vs FCL based on
functional division is outdated. Now it is mostly just compiler
bootstrapping. (even more so since the recent creation of rtl-* packages)







More information about the fpc-pascal mailing list