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.

How have people dealt with this? Using thread-local storage? Or serializing there calls into GEOS? Or some other mechanism?

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel

Reply via email to