[Digikam-devel] extragear/graphics/digikam

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Jan 22 10:01:19 GMT 2006


Forgot to CC this list, forwarding this.

SVN commit 501052 by mwiesweg:

digikam from trunk: threaded image loading

libs/threadimageio:
- created files loadsavetask.cpp/h, moved all LoadSaveTask
  code from loadsavethread.cpp, split declaration from definition.
  What was once meant as very lightweight container classes grew into
  full-blown implementations, so this split was overdue
- created managedloadsavethread.cpp and sharedloadsavethread.cpp, moved code 
from
  loadsavethread.cpp. This depended on the Load/SaveTask code.
- being a bit paranoid, fix a possible race condition where the Load/Save 
event
  might not be delivered after the second call of the load/save function with 
  the same file
- a SharedLoadingTask now removes itself properly as a listener from itself
  as a loading process, so that the waiting loop breaks. This was a severe bug
  but had almost no visible consequences.
- add destruction of cache at program exit

HistogramWidget:
- Loading can now be fast. So avoid flicker.
  In HistogramWidget, the repainting timer is now restarted to draw 
calculation
  message if it is not already running to draw loading message. Previously,
  worst case was a wait of 199 + 200 ms, now it is always 200 ms



 M  +1 -0      digikam/Makefile.am  
 M  +3 -0      digikam/digikamapp.cpp  
 M  +5 -1      libs/threadimageio/Makefile.am  
 M  +23 -2     libs/threadimageio/loadingcache.cpp  
 M  +10 -1     libs/threadimageio/loadingcache.h  
 A             libs/threadimageio/loadsavetask.cpp   [License: GPL]
 A             libs/threadimageio/loadsavetask.h   [License: GPL]
 M  +26 -754   libs/threadimageio/loadsavethread.cpp  
 M  +4 -2      libs/threadimageio/loadsavethread.h  
 A             libs/threadimageio/managedloadsavethread.cpp   [License: GPL]
 M  +1 -1      libs/threadimageio/managedloadsavethread.h  
 A             libs/threadimageio/sharedloadsavethread.cpp   [License: GPL]
 M  +26 -3     libs/widgets/histogramwidget.cpp  




More information about the Digikam-devel mailing list