Repository navigation
Conversation
|
🤖 Suggestions from an AI review. Feel free to ignore if not relevant.
|
|
🤖 is right, but both are corner cases. Setting a point line is fast, so it is unlikely code fetches old values in the next command. #378 does not suffer from that, but it is not systematic handle specially point line during update. The new data state should be allowed to be arbitrary - adding a line, removing, anything... The data race is there too, as it always has been. Querying anything from the data state or visualization scene during stream processing is a potential data race condition. However, all the settings are just simple data types with near atomic access. The point line increases the chances, but GlvisCommand is designed to communicate stuff towards the main thread, not the other way around. Maybe I could add a mutex for the data state if you want... 🤔 |
This PR fixes passing of settings from the old data state to a new one. Among other things, it fixes the point line in a more systematic way than #378 . It also fixes passing of mesh attributes as mentioned in #383 .