[Gdal-dev] multiple threads - VSIMemFileSystemHandler and
nCacheUsed
list67 at netscape.net
list67 at netscape.net
Wed Jan 11 12:25:48 EST 2006
Frank Warmerdam <warmerdam at pobox.com> wrote:
>The nCacheUsed variable is used to decide if blocks should
>be released from the cache to reduce memory use below
>the allowed maximum. Because it doesn't really matter if it
>is a bit off when it is being read, I haven't protected all uses
>of this variable with the cache mutex.
>
>However, I think all updates of this variable are protected.
>Let me know if that is not the case.
Frank,
The thread checker is reporting a "read/write data race" for the nCacheUsed variable, with the two sections of code being the GDALRasterBlock destructor and the GDALRasterBlock::Internalize() member function. It looks like the GDALRasterBlock::Internalize has a mutex lock, but the destructor does not.
Mike
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
More information about the Gdal-dev
mailing list