glib threadpools experimental in thumb updater

This commit is contained in:
Andrey Skvortsov
2010-09-14 00:05:56 -07:00
parent 71b2f5b33e
commit 58c887a445
3 changed files with 60 additions and 25 deletions

View File

@@ -22,6 +22,7 @@
#include <glibmm.h>
#include <rtengine.h>
#include <thumbnail.h>
#include <glib.h>
class ThumbImageUpdateListener {
@@ -46,11 +47,11 @@ class ThumbImageUpdater {
Glib::Thread* thread;
Glib::Mutex* qMutex;
Glib::Mutex* startMutex;
Glib::Thread **threadPool;
//Glib::Thread **threadPool;
Glib::ThreadPool * threadPool;
public:
ThumbImageUpdater ();
~ThumbImageUpdater ();
ThumbImageUpdater ();
void add (Thumbnail* t, const rtengine::procparams::ProcParams& params, int height, bool* priority, ThumbImageUpdateListener* l);
void process ();