-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constructors in eigen_typekit are not thread-safe #34
Comments
Addressed in b8e97bc |
Thanks for the patch! Some functors still have mutable |
I added the patch. Sorry I got confused by who was holding the data. Should be good for merge now |
Currently constructors in package
eigen_typekit
have a local instance of the respective type which is initialized and returned by reference from the implementedoperator()
. This is not thread-safe at all because constructors are singletons registered once when the typekit is loaded.Each call to
operator()
should therefore return a new instance by value.The text was updated successfully, but these errors were encountered: