H
HONOREDANCESTOR
I have a buffer that needs to be locked sometimes, because 2 processes
update it.
So I made the buffer into a class and whenever there is code that
affects it, I sandwich the code between
Synclock MyBufferClass
...........
End Synclock
My question is, what is Synlock protecting? Is it just protecting
MyBufferClass and all the members of MyBufferClass? Or could you have
code inside the sandwich that is totally unrelated like:
Synclock MyBufferClass
unrelatedvariable = "foozleberg"
End Synclock
Would "unrelatedvariable" be also protected from other processes
updating it?
Thanks,
HA
update it.
So I made the buffer into a class and whenever there is code that
affects it, I sandwich the code between
Synclock MyBufferClass
...........
End Synclock
My question is, what is Synlock protecting? Is it just protecting
MyBufferClass and all the members of MyBufferClass? Or could you have
code inside the sandwich that is totally unrelated like:
Synclock MyBufferClass
unrelatedvariable = "foozleberg"
End Synclock
Would "unrelatedvariable" be also protected from other processes
updating it?
Thanks,
HA