[geos-devel] Multithreading and interruption

Nyall Dawson nyall.dawson at gmail.com
Sun Dec 29 21:40:40 PST 2019

On Fri, 27 Dec 2019 at 23:38, Sandro Santilli <strk at kbt.io> wrote:
> On Mon, Dec 23, 2019 at 10:12:39AM +1000, Nyall Dawson wrote:
> > Hi list,
> >
> > Am I correct in concluding that GEOS_interruptRequest is only usable
> > in a single-threaded context? The method doesn't utilise a
> > GEOSContextHandle_t, and I can't see how GEOS would know which
> > operation to cancel if multiple operations are in place on different
> > threads...
> Yes, interruption requests are per-process, so multiple threads would
> _all_ be interrupted. Interruption is done at low level, and low level
> classes do not really have that "context" object handle, so this won't
> change unless a big refactoring is undertaken.

Thanks for the confirmation Sandro!


More information about the geos-devel mailing list