|
@@ -123,7 +123,12 @@ inline bool igl::parallel_for(
|
|
|
// Estimate number of threads in the pool
|
|
|
// http://ideone.com/Z7zldb
|
|
|
const static size_t sthc = std::thread::hardware_concurrency();
|
|
|
- const size_t nthreads = loop_size<min_parallel?0:(sthc==0?8:sthc);
|
|
|
+ const size_t nthreads =
|
|
|
+#ifdef IGL_PARALLEL_FOR_FORCE_SERIAL
|
|
|
+ 0;
|
|
|
+#else
|
|
|
+ loop_size<min_parallel?0:(sthc==0?8:sthc);
|
|
|
+#endif
|
|
|
if(nthreads==0)
|
|
|
{
|
|
|
// serial
|