Burkhard Carstens wrote:
>> I don't see the need for Owner_Check_Lock anymore ? :-)
> 
> You have to prevent that 2 concurrent threads call lock simultanously, 

No, why?

> so you have to take an internal lock before touching internal vars like 
> self.ThreadID ?

No, why ? This is a common misconception I think. (Multi-threaded)
Programs are about state, not about touching internal variables.

Micha
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to