How is locked used with an expression?


(Jose A Molina) #1

https://docs.elementscompiler.com/Oxygene/Members/Methods/#q=Locked

locked on Expression optionally provides an expression that will be used to synchronize the access.

How is locked used with an expression?
Please, some code example.

Thanks,

Best regards,
Jose A.


(marc hoffman) #2
property foo; 
property bar; locked on foo; // would make sense for foo to be unchanging, ofc.

(Jose A Molina) #3

Ok. Thanks Marc.