You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any plan to make the read/writing of T_O_IOData/O_T_IOData thread-safe? This is not an issue when reading separate bytes, but the Ethernet/IP device I am using also defines Int32 variables (4 bytes). When reading the T_O_IOData array, it might contain both bytes from the previous cycle and the current one resulting in an Int32 that was not actually on the device. The same issue can occur for the output O_T_IOData.
Accessing the T_O_IOData and O_T_IOData arrays through a property with a lock can solve this issue. Also an Array.Copy is probably faster than looping over the elements.
The text was updated successfully, but these errors were encountered:
twoudsma
changed the title
Concurrent read/writing of T_O_IOData
Concurrent read/writing of T_O_IOData/O_T_IOData
Apr 11, 2018
Hey!
Is there any plan to make the read/writing of T_O_IOData/O_T_IOData thread-safe? This is not an issue when reading separate bytes, but the Ethernet/IP device I am using also defines Int32 variables (4 bytes). When reading the T_O_IOData array, it might contain both bytes from the previous cycle and the current one resulting in an Int32 that was not actually on the device. The same issue can occur for the output O_T_IOData.
Accessing the T_O_IOData and O_T_IOData arrays through a property with a lock can solve this issue. Also an Array.Copy is probably faster than looping over the elements.
The text was updated successfully, but these errors were encountered: