[geos-devel] Multithreading and interruption

Sandro Santilli strk at kbt.io
Fri Dec 27 05:37:58 PST 2019

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.


More information about the geos-devel mailing list