File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ struct FakeCheckCheckCompletion {
46
46
47
47
struct FailingCheck {
48
48
bool fails;
49
- FailingCheck (bool fails ) : fails(fails ){};
49
+ FailingCheck (bool _fails ) : fails(_fails ){};
50
50
FailingCheck () : fails(true ){};
51
51
bool operator ()()
52
52
{
@@ -411,15 +411,15 @@ BOOST_AUTO_TEST_CASE(test_CheckQueueControl_Locks)
411
411
std::unique_lock<std::mutex> l (m);
412
412
tg.create_thread ([&]{
413
413
CCheckQueueControl<FakeCheck> control (queue.get ());
414
- std::unique_lock<std::mutex> l (m);
414
+ std::unique_lock<std::mutex> ll (m);
415
415
has_lock = true ;
416
416
cv.notify_one ();
417
- cv.wait (l , [&]{return has_tried;});
417
+ cv.wait (ll , [&]{return has_tried;});
418
418
done = true ;
419
419
cv.notify_one ();
420
420
// Wait until the done is acknowledged
421
421
//
422
- cv.wait (l , [&]{return done_ack;});
422
+ cv.wait (ll , [&]{return done_ack;});
423
423
});
424
424
// Wait for thread to get the lock
425
425
cv.wait (l, [&](){return has_lock;});
You can’t perform that action at this time.
0 commit comments