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:
authorTon Roosendaal <ton@blender.org>2006-01-30 14:09:50 +0300
committerTon Roosendaal <ton@blender.org>2006-01-30 14:09:50 +0300
commite1936485952092b0ff96485666f86d65fe8f1e58 (patch)
tree415a94e0eed03d6db4f2f8933346c5ac9e52ff6b /source/blender/render
parent18ab7c468fbca1aeab57c6d9268535067be03ef3 (diff)
Created threadsafe MEM_malloc versions in BLI_threads.h, now in use
for compositing code. Officially malloc/calloc/free is threadsafe, but our secure malloc system requires all memory blocks to be stored in a single list, so when two threads write in this list you get conflicts.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/pipeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c
index 5780b780b0f..375cb5f3a0c 100644
--- a/source/blender/render/intern/source/pipeline.c
+++ b/source/blender/render/intern/source/pipeline.c
@@ -106,7 +106,7 @@ Render R;
/* ********* alloc and free ******** */
-SDL_mutex *malloc_lock= NULL;
+static SDL_mutex *malloc_lock= NULL;
void *RE_mallocN(int len, char *name)
{