Fix #33107: cycles fixed threads 1 was still having two cores do work,
[blender.git] / intern / cycles / util / util_task.h
index a2f284479c77e3bb5e56eb609a9e3ba4b5185c3c..b795ca7524b47961c7c7c222bbdabb31b8de4629 100644 (file)
@@ -94,7 +94,10 @@ public:
        static void init(int num_threads = 0);
        static void exit();
 
-       static int num_threads() { return threads.size(); }
+       /* number of threads that can work on tasks, main thread counts too */
+       static int num_threads() { return threads.size() + 1; }
+
+       /* test if any session is using the scheduler */
        static bool active() { return users != 0; }
 
 protected: