Someone
public text v1 · immutableset
{ //Lock to ensure full values is set or returned
lock (this) //This value is always locked while the thread is live?
{
//Needs to check if the value has changed much - i.e. draughts etc
//if (value > 0)
{
m_scales = value;
//This needs invoke incase called from another thread!!
if(this.InvokeRequired) //*** Needs testing!!
this.Invoke(new EventHandler(setScalesWeight));
else
setScalesWeight(new object(), new EventArgs());
}
}