Extremely slow filebrowser on Win64, Issue 2431

This commit is contained in:
Ingo 2014-08-12 12:10:49 +02:00
parent 08dc76b0fe
commit ec893d858e

View File

@ -69,9 +69,12 @@ public:
inactive_waiting_(false)
{
int threadCount=1;
#if !(defined( WIN32 ) && defined( __x86_64__ ))
// See Issue 2431 for explanation
#ifdef _OPENMP
threadCount=omp_get_num_procs();
#endif
#endif
threadPool_=new Glib::ThreadPool(threadCount,0);
}