* start using message threading (--threads/-t param for mu find)

This commit is contained in:
Dirk-Jan C. Binnema
2011-06-30 23:45:53 +03:00
parent 15ac5f04c9
commit 2d1f8366d5
5 changed files with 10 additions and 9 deletions

View File

@ -29,8 +29,7 @@
#include "mu-util.h"
#include "mu-msg.h"
#include "mu-msg-iter.h"
#include "mu-msg-threader.h"
#include "mu-threader.h"
/* just a guess... */
#define MAX_FETCH_SIZE 10000
@ -58,7 +57,7 @@ struct _MuMsgIter {
if (threads && !_matches.empty()) {
_matches.fetch();
_threadhash = mu_msg_threader_calculate
_threadhash = mu_threader_calculate
(this, _matches.size());
ThreadKeyMaker keymaker(_threadhash);
enq.set_sort_by_key (&keymaker, false);