Opened 18 years ago

Last modified 18 years ago

#1031 closed defect (fixed)

thead safety for VSIMemFileSysHandler

Reported by: list672000@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: major Keywords:
Cc:

Description

The Intel Thread Checker is reporting "read/write data race" errors when run 
with a program that has multiple threads which call VSIFileFromMemBuffer(..), 
GDALOpen, VSIUnlink, etc. (all for reading rasters).

Many of the errors seem to be related to the accessing of the 
VSIMemFileSystemHandler's oFileList data member.

Change History (1)

comment:1 by warmerdam, 18 years ago

I have applied a patch to cpl_vsi_mem.cpp to protect access to oFileList
with a mutex.  I also added some notes on multithreading issues at
the top of the file (and in cpl_vsil.cpp). 
Note: See TracTickets for help on using tickets.