Commit a228c346 authored by Davis King's avatar Davis King

Fixed a bug I just introduced. It caused the verbose parallel_for()

methods to not print updates after the first print.
parent 29eb15d7
......@@ -319,7 +319,7 @@ namespace dlib
(obj.*funct)(i);
{
auto_mutex lock(m);
wrote_to_screen = wrote_to_screen || pbar.print_status(++count);
wrote_to_screen = pbar.print_status(++count) || wrote_to_screen;
}
}
......@@ -355,7 +355,7 @@ namespace dlib
{
auto_mutex lock(m);
count += end-begin;
wrote_to_screen = wrote_to_screen || pbar.print_status(count);
wrote_to_screen = pbar.print_status(count) || wrote_to_screen;
}
}
};
......@@ -387,7 +387,7 @@ namespace dlib
obj(i);
{
auto_mutex lock(m);
wrote_to_screen = wrote_to_screen || pbar.print_status(++count);
wrote_to_screen = pbar.print_status(++count) || wrote_to_screen;
}
}
......@@ -397,7 +397,7 @@ namespace dlib
{
auto_mutex lock(m);
count += end-begin;
wrote_to_screen = wrote_to_screen || pbar.print_status(count);
wrote_to_screen = pbar.print_status(count) || wrote_to_screen;
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment