[Lazarus] thread safe

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Jun 27 11:29:58 CEST 2011



On Mon, 27 Jun 2011, Michael Schnell wrote:

> 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.

These calls are simply wrappers around the Microsoft threading API. 
So it's the MS engineers who were drunk, I suppose.

Michael.




More information about the Lazarus mailing list