Skip to content
Browse files

Fix progress update scope

didn't actually attach to mutex but create a new local variable
  • Loading branch information...
ypnos committed Sep 17, 2018
1 parent 94f7044 commit 50e0f2375f7914bee2388f875af41c2fcf05afe8
Showing with 1 addition and 1 deletion.
  1. +1 −1 seg_meanshift/mfams.cpp
@@ -561,7 +561,7 @@ bool FAMS::progressUpdate(float percent, bool absolute)
if (!po && config.verbosity < 1)
return true;

tbb::mutex::scoped_lock l(progressMutex);
if (absolute)
progress = percent;

0 comments on commit 50e0f23

Please sign in to comment.
You can’t perform that action at this time.