threads: added recoll_threadinit calls to block signals

This commit is contained in:
Jean-Francois Dockes
2012-11-23 13:36:05 +01:00
parent 850817e2d9
commit cc79ee3f73
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -44,6 +44,7 @@
#include "wipedir.h"
#include "fileudi.h"
#include "cancelcheck.h"
#include "rclinit.h"
// When using extended attributes, we have to use the ctime.
// This is quite an expensive price to pay...
@@ -361,6 +362,7 @@ void FsIndexer::makesig(const struct stat *stp, string& out)
#ifdef IDX_THREADS
void *FsIndexerDbUpdWorker(void * fsp)
{
recoll_threadinit();
FsIndexer *fip = (FsIndexer*)fsp;
WorkQueue<DbUpdTask*> *tqp = &fip->m_dwqueue;
DebugLog::getdbl()->setloglevel(fip->m_loglevel);
@@ -384,6 +386,7 @@ void *FsIndexerDbUpdWorker(void * fsp)
void *FsIndexerInternfileWorker(void * fsp)
{
recoll_threadinit();
FsIndexer *fip = (FsIndexer*)fsp;
WorkQueue<InternfileTask*> *tqp = &fip->m_iwqueue;
DebugLog::getdbl()->setloglevel(fip->m_loglevel);