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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-08 23:57:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-08 23:57:56 +0400
commitd9a70ceeb14fa7e723ce226f36eba12aea2373df (patch)
tree1283117b529a4524e27906f244066977146b1866 /intern/cycles/util
parent81255ca8ce5339910b3ab9de2878bfc470e714da (diff)
Fix 31370: light falloff node linear output not working code.
Fix part of thread safety issue, there's still something else wrong.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_progress.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/util/util_progress.h b/intern/cycles/util/util_progress.h
index 2cc2995bcfe..c63aa841c52 100644
--- a/intern/cycles/util/util_progress.h
+++ b/intern/cycles/util/util_progress.h
@@ -153,8 +153,10 @@ public:
void set_update()
{
- if(update_cb)
+ if(update_cb) {
+ thread_scoped_lock lock(update_mutex);
update_cb();
+ }
}
void set_update_callback(boost::function<void(void)> function)
@@ -164,6 +166,7 @@ public:
protected:
thread_mutex progress_mutex;
+ thread_mutex update_mutex;
boost::function<void(void)> update_cb;
boost::function<void(void)> cancel_cb;