[geos-devel] thread save

Sandro Santilli strk at kbt.io
Wed Feb 8 05:46:15 PST 2017

On Wed, Feb 08, 2017 at 04:25:45PM +0300, Gorbachev Ivan wrote:
> Hello!
> I need to find the intersections with a set of the poligons and a set of
> the lines. I have to many poligons and lines, so i decide to do it in the
> different threads. For each line I start own thread. In that thread there
> is the calculation of the intersection with each polygon from the set and
> one line. Application crashes with an segmentation fault. I use C++ API. Is
> CAPI can help me (using the reentrant API) ?

The CAPI should not give you any more reentrancy than the C++ one, which
is what effectively limits the thread-safety of the reentrant C API too.

It would be useful to dig further to find the culprit of your segfault,
just in case it's an actual bug you're hitting.


More information about the geos-devel mailing list