[gdal-dev] libecwj2 with multiple readers

Mateusz Loskot mateusz at loskot.net
Wed Jan 16 02:33:50 PST 2013


On 16 January 2013 10:13, Even Rouault <even.rouault at mines-paris.org> 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 protected by the lock.

Hi Even,

Lock is one side of the problem.
The second one is non-deterministic nature static initialization and
static deinitialisation issue. In this case, the latter.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net


More information about the gdal-dev mailing list