[Lazarus] thread safe

Michael Schnell mschnell at lumino.de
Mon Jun 27 11:08:32 CEST 2011


On 06/23/2011 07:50 AM, Hans-Peter Diettrich wrote:
> I may be wrong here, because I used threads only on realtime systems, 
> never in Delphi or Lazarus...
Threads can help to greatly improve the soft realtime behavior of a 
Delphi/Lazarus program. We do this a lit.
>
> BTW, I just got my copy of RAD Studio XE, where e.g. thread.suspend is 
> deprecated, and other means for thread synchronization are added. But 
> these have to be implemented in FPC first, before SpinLock or other 
> procedures or methods can be used.
>
IMHO TThread.Suspend and friends is a very queer way of doing thread 
synchronizing. The Delphi developers seem to have been drunk when 
inventing this (in vain trying to create something idiot-friendly). I 
never used this stuff.

-Michael




More information about the Lazarus mailing list