[geos-devel] Geos - multithreading and error handling

strk at refractions.net strk at refractions.net
Tue Jun 27 11:38:20 EDT 2006


On Sun, Jun 25, 2006 at 05:43:46PM -0600, Charlie Savage wrote:
> Is geos safe for multi-threading?
> 
> What is the approach when using the C-API for error handling?  I see 
> that you can install an error handler and a notice handler.  However, 
> those functions are global.  So in a multi-threaded app its easy to see 
> how different threads could trigger these functions in an unexpected 
> order causing the wrong error message to be returned to each thread.

I've no experience with threaded runs, anyway I don't get the unexpected
order problem.. errors should be raised in the order they occur.

--strk;



More information about the geos-devel mailing list