[gdal-dev] Multithreading, deadlock with proj.4
heidegg at hotmail.com
Thu Feb 9 04:45:27 EST 2012
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...
More information about the gdal-dev