[gdal-dev] Sharing GDAL Dataset objects between threads (JNI)

Markus Schneider schneider at occamlabs.de
Mon Oct 14 03:53:13 PDT 2013


Hi,

I am using GDAL (1.10.1) in a Java Servlet environment via JNI. I
observed that Dataset objects cannot be shared between threads, even if
they are not used in parallel, but strictly consecutively. For me, the
VM crashes if a thread uses a Dataset that it didn't create.

So somehow Dataset objects (on the Java or on the C side) seem to be
using ThreadLocal information.

Is this correct? Would it be hard to eliminate this behaviour (as it
would make pooling Dataset objects much easier and more efficient)?

Thanks for any pointers or remarks,
Markus

-- 
Markus Schneider
CEO

Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139
53175 Bonn, Germany

+49 228 93798874

http://www.occamlabs.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131014/4a405c5c/attachment.pgp>


More information about the gdal-dev mailing list