Closed sempervictus closed 11 years ago
GEOS has a reentrant interface that uses a context handle to store some information in and passes it along to all of its reentrant functions within the CAPI, hence why we store that handle in thread storage rather than in an instance variable. I don't think it would be a good idea to share a single instance of this handle across all threads since that would defeat the purpose of having a thread-safe handle in the first place.
Closed, as we can't share handles across threads.
This PR replaces Thread local storage with instance variables so as to encapsulate state within the object.
Running on Rubinius 2.0.0.rc1 (1.9.3 be5c0cb8) rake test produces: