Shared Variables
JWoolston
Posts: 4
I have an application where one cog will be writing an array of six values and another reading from it. In this particular case the ability for the write cog to change say, value 6 while the read cog is only on value 4 would be beneficial, allowing for the speediest variable updates possible....is there any reason other than bad programming practice why this could not be done? I seem to remember something about issues if one cog tries to read and index while the other cog tries to write to the same index.
Comments
-Parsko