Commit 16fdf803 authored by Davis King's avatar Davis King

Fixed a bug in this test.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403484
parent 141b0efb
......@@ -91,9 +91,9 @@ namespace
{
mut.lock();
++num_read;
max_read = max(num_read, max_read);
mut.unlock();
max_read = max(num_read, max_read);
if (num_write != 0)
{
failure = true;
......@@ -102,7 +102,6 @@ namespace
dlib::sleep(300);
max_read = max(num_read, max_read);
if (num_write != 0)
{
failure = true;
......@@ -110,6 +109,7 @@ namespace
}
mut.lock();
max_read = max(num_read, max_read);
--num_read;
mut.unlock();
......
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