[gdal-dev] Thread-safe raster access

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Jun 3 07:36:04 PDT 2024


If the purpose of multithreading is performance, a mutex will ruin that
performance.
Opening different datasets solves that already.

For writing, allowing different synchronous writers is... scary.

On Mon, 3 Jun 2024, 16:12 Chris Toney via gdal-dev, <
gdal-dev at lists.osgeo.org> wrote:

> Hi Andrew,
> Some related comments and links are in:
> https://github.com/OSGeo/gdal/issues/9091
>
> Chris
>
> On Mon, Jun 3, 2024 at 7:44 AM Andrew Bell via gdal-dev <
> gdal-dev at lists.osgeo.org> wrote:
>
>> Hi,
>>
>> I am aware that there isn't thread-safe raster access with the current
>> GDAL interface for various reasons. Given the state of processors, I was
>> wondering if it would be valuable to take a look at providing the ability
>> to do Raster I/O (at least reads) in a thread-safe way. This could be done
>> through a new set of API calls or perhaps by modifications to what
>> currently exists -- I don't know what makes sense at this point. I would be
>> happy to spend some time looking at this if there is interest, but I would
>> also like to learn from existing experience as to what kinds of things that
>> I'm surely not considering would have to be dealt with.
>>
>> Thanks,
>>
>> --
>> Andrew Bell
>> andrew.bell.ia at gmail.com
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240603/1b4e35d0/attachment.htm>


More information about the gdal-dev mailing list