[fpc-pascal] Semaphore problems

Micha Nelissen micha at neli.hopto.org
Tue Jul 25 11:08:03 CEST 2006

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.


More information about the fpc-pascal mailing list