File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
libcxx/test/std/thread/thread.condition/thread.condition.condvarany Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ void test() {
119
119
bool flag = false ;
120
120
auto thread = support::make_test_thread ([&]() {
121
121
std::this_thread::sleep_for (2ms);
122
- Lock lock2{mutex};
122
+ std::unique_lock<Mutex> lock2{mutex};
123
123
flag = true ;
124
124
cv.notify_all ();
125
125
});
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ void test() {
63
63
bool flag = false ;
64
64
auto thread = support::make_test_thread ([&]() {
65
65
std::this_thread::sleep_for (std::chrono::milliseconds (2 ));
66
- Lock lock2{mutex};
66
+ std::unique_lock<Mutex> lock2{mutex};
67
67
flag = true ;
68
68
cv.notify_all ();
69
69
});
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ void test() {
119
119
bool flag = false ;
120
120
auto thread = support::make_test_thread ([&]() {
121
121
std::this_thread::sleep_for (std::chrono::milliseconds (2 ));
122
- Lock lock2{mutex};
122
+ std::unique_lock<Mutex> lock2{mutex};
123
123
flag = true ;
124
124
cv.notify_all ();
125
125
});
You can’t perform that action at this time.
0 commit comments