Select to view content in your preferred language

Is GeometryEngine thread safe?

612
1
08-03-2022 10:25 PM
mody_buchbinder
Frequent Contributor

I am trying to run Pro SDK code and I split some process I need to do into multithread. Each of the threads try to call the GeometryEngine.

I know GeometryEngien is singleton.

The multithread is not the pro threads, I create them within C#. 

Can this be done?

Thanks

1 Reply
Wolf
by Esri Regular Contributor
Esri Regular Contributor

This is not something that we support with the ArcGIS Pro API.   That being said, we don't see a reason for this not to work.  Geometry objects in the Pro API are immutable, so there is no risk of conflict when accessing such objects from multiple threads.  Other Pro API objects that are mutated or need to maintain state are not well suited for a multi-threaded application (i.e. GeoDatabase RowCursor).

0 Kudos