Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuFileCache::set_max_size ( int  max_size  ) 

Sets new maximum size. If the total size of all items in the cache is greater than max_size#, the cache will be deleting the oldest items until the size is OK.

Definition at line 93 of file DjVuFileCache.cpp.

Referenced by enable().

   DEBUG_MSG("DjVuFileCache::set_max_size(): resizing to " << xmax_size << "\n");

   GCriticalSectionLock lock(&class_lock);

   if (max_size>=0) clear_to_size(enabled ? max_size : 0);

Generated by  Doxygen 1.6.0   Back to index