Re: [gdal-dev] libecwj2 with multiple readers

2013-01-16 Thread Mateusz Loskot
On 16 January 2013 10:13, Even Rouault wrote: > Hi Mateusz, > > Looking at NCJP2FileView.cpp, I can see that most accesses to sm_Views are > protected with CNCSJPCGlobalLock _Lock; > > Perhaps it should also be added to CNCSJP2FileView::Shutdown() which seems the > only place in that file not prot

Re: [gdal-dev] libecwj2 with multiple readers

2013-01-16 Thread Even Rouault
Hi Mateusz, Looking at NCJP2FileView.cpp, I can see that most accesses to sm_Views are protected with CNCSJPCGlobalLock _Lock; Perhaps it should also be added to CNCSJP2FileView::Shutdown() which seems the only place in that file not protected by the lock. Best regards, Even ___

[gdal-dev] libecwj2 with multiple readers

2013-01-15 Thread Mateusz Loskot
Hi, Without getting into details, I wonder, has anyone ever used GDAL with libecwj2 support to access ECW dataset(s) from multiple readers? Apparently, libecwj2 manages some internal static environment which can not be safely shared, unless all accesses to libecwj2 are serialised. For example, in