Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Viliars committed Dec 5, 2018
1 parent 7272698 commit cbee9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pritugin/08/hw08.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using Lock = unique_lock<mutex>;
template<int T>
void make(mutex& m, bool& flag, condition_variable& c)
{
for (int i = 0; i < 10; ++i)
for (int i = 0; i < 500000; ++i)
{
Lock lock(m);
c.wait(lock, [&flag](){ return T ? flag : !flag; });
Expand Down

0 comments on commit cbee9b9

Please sign in to comment.