[Lazarus] thread safe

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 10 14:18:56 CEST 2011


On Fri, 10 Jun 2011 13:52:35 +0200
Michael Schnell <mschnell at lumino.de> wrote:

> On 06/10/2011 01:26 PM, Henry Vermaak wrote:
> > On 10/06/11 02:09, Hans-Peter Diettrich wrote:
> >>
> >> What is "thread safe"?
> >
> > The definition is very clear here:
> >
> > http://en.wikipedia.org/wiki/Thread_safety
> >
> clear does not imply useful :) .
> 
> With "piece of code" they obviously mean a single function (or part of 
> it), with the implication that no other functions are called during this 
> test by any of those threads.

?
Of course a threads safe function can call other thread safe
functions.

 
> E.g. Regarding Objects this is not enough.

Prove?

Mattias




More information about the Lazarus mailing list