lock(objectinstance)
{
//method code on now protected object
}
one can protect another object of beeing somehow accessed / modified, while oneself is treating with it. the object itself doesnt know about that and does not need to take care on providing any synchonisation features inside.
would it be possible to make something like that in upp as well?
as far as i know, c# compiler helps here somehow..
meanwhile:
here is another maybe usefull construction, came in mind while i was dealing with Mt.h..