Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-08-01 Thread Francisco Javier Calzado
] Multithreading issue on pixel-based intensive access (GDAL 2.1.0) Javier, > I have attached a simple code to reproduce it (Test.cpp). If you need > the whole solution just ask me, although it is a very simple console > test. I have also shared with you the zipped datasets through

Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-30 Thread Even Rouault
Javier, > I have attached a simple code to reproduce it (Test.cpp). If you need the > whole solution just ask me, although it is a very simple console test. I > have also shared with you the zipped datasets through this link: > https://drive.google.com/file/d/0B-OCl1FjBi0YblRPRGZlQWx4eEE/view?usp=

Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-29 Thread Francisco Javier Calzado
Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0) On Thursday 28 July 2016 13:11:13 Francisco Javier Calzado wrote: > Thanks Even, > > I don't want to waste your time, so just before sending any code to be > tested I w

Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-28 Thread Even Rouault
On Thursday 28 July 2016 13:11:13 Francisco Javier Calzado wrote: > Thanks Even, > > I don't want to waste your time, so just before sending any code to be > tested I would like to be sure it is not a bug from my side. Although I > usually work with GDAL compiled in 64bits, I had to swap to x86 fo

Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-28 Thread Francisco Javier Calzado
Thanks Even, I don't want to waste your time, so just before sending any code to be tested I would like to be sure it is not a bug from my side. Although I usually work with GDAL compiled in 64bits, I had to swap to x86 for these tests. When trying to compile in 32bits with Visual Studio 2015 I

Re: [gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-27 Thread Even Rouault
Javier, Your use case looks like a legit use case of the API. I'm not aware of bugs regarding to locking of the raster block cache, but that doesn't mean that they aren't any. Could you prepare a self contained source code + dataset that would reproduce the issue ? As far as I can see, GDALRas

[gdal-dev] Multithreading issue on pixel-based intensive access (GDAL 2.1.0)

2016-07-27 Thread Javier Calzado
Hi guys, I'm experiencing an issue when running some simple tests involving multithreading. I would like to know if it is something I am not doing correctly with GDAL or it is a GDAL business dealing with threads and block cache. To make long story short, just imagine two threads accessing dif