Replies: 3 comments
-
why would JOML need to manage write access? you can just guard it in a synchronization block or mutex. I don't know what your use case would be though? |
Beta Was this translation helpful? Give feedback.
-
Hello @pollend, When possible I want to avoid synchronization, that is why I figured I would ask to see how others handle this. After playing with it yesterday, I have a rough draft for a pattern that may help prevent situations like that. It is not perfect, but much better than what I started with.
By using the read only views I can restrict (or at least impress on end users) to not modify the contents after setting the object. Just looking for suggestions. Thank you, |
Beta Was this translation helpful? Give feedback.
-
I'm converting this to a "Discussion". It fits discussions better than issues since it requests for advice and opinion and seems to be more of the "long running" kind of thing as there is no apparent definition for when the things being asked for have been sufficiently provided. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I looking for advice on using JOML in a multi-threaded environment where multiple threads may read/modify joml objects (Matrix/Vector/Quaternion/etc...). Synchronous access would be fine for my use case, but currently not implemented in JOML (and for good reason as it will impact performance).
Is there any recommended method for handling this? Or is there any interest in adding a set of thread-safe variants for the existing objects in joml, perhaps as a separate package?
Thanks,
Trevor
Beta Was this translation helpful? Give feedback.
All reactions