diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-16 11:26:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-16 11:26:37 +0300 |
commit | 24ec761bb41402214293c68591fdaeed7393b607 (patch) | |
tree | 5bb917d5a8d365669816c136fc24ca8a001e1b92 /intern | |
parent | e306499a41ef49b8b42154f8dd7a6ac422d5d94e (diff) | |
parent | 794311c92bb2fb7544a8fd5f9d911589a805642b (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_progress.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/util/util_progress.h b/intern/cycles/util/util_progress.h index bc672669e1f..cd4fe52fdc9 100644 --- a/intern/cycles/util/util_progress.h +++ b/intern/cycles/util/util_progress.h @@ -226,6 +226,7 @@ public: int get_current_sample() { + thread_scoped_lock lock(progress_mutex); /* Note that the value here always belongs to the last tile that updated, * so it's only useful if there is only one active tile. */ return current_tile_sample; @@ -233,11 +234,13 @@ public: int get_rendered_tiles() { + thread_scoped_lock lock(progress_mutex); return rendered_tiles; } int get_denoised_tiles() { + thread_scoped_lock lock(progress_mutex); return denoised_tiles; } |