mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-09 21:21:19 -06:00
Saving GDAL dataset values upon initialization of dataset to avoid calling GDAL functions afterwards since it can be done concurrently. Not done for the data reading since some (not all) GDAL dataset drivers support concurrent reading. The WMS driver does not support concurrent reading, which is why we only use one worker thread per AsyncTileDataReader. Perhaps something for the future if GDAL will ensure thread saefty. Protecting GdalRawTileDataReader with mutex lock when initializing. Make sure read only functions in RawTileDataReader are const. Protecting ConcurrentJobManager with mutex lock when pushing and popping to finished jobs.