M
Marcel Ruff
Hi,
i have a thread assigning an object:
this.myObj = someObj;
and another thread accessing it, e.g.:
logger.Info(this.myObj.ToString());
Do i need any mutex to protect this or is
the assignment atomic?
Could it be that the first two bytes of the
object reference are written and the second thread
accesses a corrupt reference?
Thanks
Marcel
i have a thread assigning an object:
this.myObj = someObj;
and another thread accessing it, e.g.:
logger.Info(this.myObj.ToString());
Do i need any mutex to protect this or is
the assignment atomic?
Could it be that the first two bytes of the
object reference are written and the second thread
accesses a corrupt reference?
Thanks
Marcel