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:
authorJoseph Eagar <joeedh@gmail.com>2010-04-14 00:34:40 +0400
committerJoseph Eagar <joeedh@gmail.com>2010-04-14 00:34:40 +0400
commit0d557969b80c91d7efc9c5d33ede8aa902120271 (patch)
tree1db0821038e1b9f2b02cd36cf1eb50e4a02ca821 /source/blender/blenlib/BLI_threads.h
parent953d938ad19bc1dd81267ceb97e418fd84957532 (diff)
used private mutexes to avoid deadlocks
Diffstat (limited to 'source/blender/blenlib/BLI_threads.h')
-rw-r--r--source/blender/blenlib/BLI_threads.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h
index e3290873dc3..cf21707cd39 100644
--- a/source/blender/blenlib/BLI_threads.h
+++ b/source/blender/blenlib/BLI_threads.h
@@ -72,6 +72,7 @@ void BLI_unlock_thread(int type);
/* Mutex Lock */
typedef pthread_mutex_t ThreadMutex;
+#define BLI_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER;
void BLI_mutex_init(ThreadMutex *mutex);
void BLI_mutex_lock(ThreadMutex *mutex);