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:
authorCampbell Barton <ideasman42@gmail.com>2010-01-28 22:18:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-28 22:18:35 +0300
commitcd2c4a58345dfabf88e985b6aca5f259168f628e (patch)
tree579d9f44960853a5f55a7e0e05c27d2059c6f760 /source/blender/blenlib
parentabde08b71672d67511309a18aa80c9c278a7c313 (diff)
- change max threads from 8 to 64, need to keep an eye on stack memory use here.
- reload fix didnt work last commit.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_threads.h2
-rw-r--r--source/blender/blenlib/intern/threads.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h
index 089ee9bdbdd..113229863d8 100644
--- a/source/blender/blenlib/BLI_threads.h
+++ b/source/blender/blenlib/BLI_threads.h
@@ -34,7 +34,7 @@
#include <pthread.h>
/* for tables, button in UI, etc */
-#define BLENDER_MAX_THREADS 8
+#define BLENDER_MAX_THREADS 64
struct ListBase;
diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c
index a81d5ed64e4..a751e849f82 100644
--- a/source/blender/blenlib/intern/threads.c
+++ b/source/blender/blenlib/intern/threads.c
@@ -107,7 +107,7 @@ static pthread_mutex_t _custom1_lock = PTHREAD_MUTEX_INITIALIZER;
static int thread_levels= 0; /* threads can be invoked inside threads */
/* just a max for security reasons */
-#define RE_MAX_THREAD 8
+#define RE_MAX_THREAD BLENDER_MAX_THREADS
typedef struct ThreadSlot {
struct ThreadSlot *next, *prev;