Changes between Version 2 and Version 3 of rfc26_blockcache


Ignore:
Timestamp:
Dec 6, 2009, 2:40:40 AM (14 years ago)
Author:
tamas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc26_blockcache

    v2 v3  
    3636
    3737
    38 Protecting the band level cache from the access of multiple threads may happen by using a per-band a mutex of the
     38Protecting the band level cache from the access of multiple threads may happen by using a per-band mutex of the
    3939raster band, however using this second mutex may easily lead to deadlock situations as pointed out in #3324. To avoid this situation it would be much
    4040safer to use hRBMutex to protect the simoultaneous access to the per-band cache as well. In most cases when accessing the per-band
    4141cache, hRBMutex is also involved in various operations (like GDALRasterBlock:Touch, GDALRasterBlock:Internalize,
    42 GDALRasterBlock::SafeLockBlock etc.) it would only require to extend the scope of this mutex by exposing hRBMutex to be
     42GDALRasterBlock::SafeLockBlock etc.) it would only be required to extend the scope of this mutex by exposing hRBMutex to be
    4343accessed by GDALRasterBand.
    4444
    45 To select between the array based and the hashtable based approaches a nMaxCacheSize parameter is introduced for each band.
    46 When the array would exceed this size limit the hashtable based approach will be selected, and the hashtable is allocated
     45To select between the array based and the hashtable based approaches a nMaxCacheSize parameter is introduced at the band.
     46When the array would exceed this size limit the hashtable based approach is selected, and the hashtable is allocated
    4747to this initial size by default.
    4848