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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-04-13 12:45:56 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-13 13:40:44 +0300
commitfdc653e8ce77a188138dc707207139c3d1e6b166 (patch)
treef0ee126b13ed3695ee13e8460cadf8aa7b490b54 /source/blender/nodes/intern/node_exec.h
parentefe90384b79f0859a56bb4bbc668d7be0707ac6a (diff)
Nodes: Remove hardcoded BLENDER_MAX_THREADS number of threads
Use actual available number of threads now, which will make it easier to increase max number of threads, without having some sloppy memory usage and without doing some redundant checks on thread data which was never used.
Diffstat (limited to 'source/blender/nodes/intern/node_exec.h')
-rw-r--r--source/blender/nodes/intern/node_exec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_exec.h b/source/blender/nodes/intern/node_exec.h
index a0023d02295..8bb8c77a88c 100644
--- a/source/blender/nodes/intern/node_exec.h
+++ b/source/blender/nodes/intern/node_exec.h
@@ -65,6 +65,7 @@ typedef struct bNodeTreeExec {
int stacksize;
struct bNodeStack *stack; /* socket data stack */
/* only used by material and texture trees to keep one stack for each thread */
+ int tot_thread;
ListBase *threadstack; /* one instance of the stack for each thread */
} bNodeTreeExec;