Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/util/util_task.h')
-rw-r--r--intern/cycles/util/util_task.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_task.h b/intern/cycles/util/util_task.h
index 5bca3f255af..6e002ddd5b1 100644
--- a/intern/cycles/util/util_task.h
+++ b/intern/cycles/util/util_task.h
@@ -94,8 +94,8 @@ public:
static void init(int num_threads = 0);
static void exit();
- /* number of threads that can work on tasks, main thread counts too */
- static int num_threads() { return threads.size() + 1; }
+ /* number of threads that can work on task */
+ static int num_threads() { return threads.size(); }
/* test if any session is using the scheduler */
static bool active() { return users != 0; }