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 GeometryFactory thread safe, in that GeometryFactory::createPolygon() and other object creation methods can be safely called from multiple threads at the same time?
If calling GeometryFactory::setPrecisionModel() is not thread-safe, that is acceptable since I wouldn't be doing that during the multi-threaded tasks.
In reading the source code, it seems that the factory doesn't really do anything special when it comes to memory allocation, but rather it is a centralized location for settings. In my experimentation, it seems unnecessary to have multiple factories (one for each thread).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Is
GeometryFactorythread safe, in thatGeometryFactory::createPolygon()and other object creation methods can be safely called from multiple threads at the same time?If calling
GeometryFactory::setPrecisionModel()is not thread-safe, that is acceptable since I wouldn't be doing that during the multi-threaded tasks.In reading the source code, it seems that the factory doesn't really do anything special when it comes to memory allocation, but rather it is a centralized location for settings. In my experimentation, it seems unnecessary to have multiple factories (one for each thread).
Let me know if I am missing something!
All reactions