[gdal-dev] Multithreading, deadlock with proj.4
Roger Phillips
heidegg at hotmail.com
Thu Feb 9 04:45:27 EST 2012
Hello folks,
I recently tried to use the GDAL 1.9.0 API from multiple threads. However, they may arise a deadlock situation
where one thread hangs in the cpl_multithread.cpp CPLAcquireMutex function and others hang in the pj_acquire_lock() function of the proj.4 4.7.0 API blocking each other.
The methods that set the locks seem to be the
int Initialize( OGRSpatialReference *poSource,
OGRSpatialReference *poTarget );
virtual int TransformEx( int nCount,
double *x, double *y, double *z = NULL,
int *panSuccess = NULL );
methods of ogrct.cpp.
Not using the methods prevents a deadlock.
Do you know about this?
Thanks for your attention!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120209/6c68b425/attachment.html
More information about the gdal-dev
mailing list