We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7262dc3 commit d4a9045Copy full SHA for d4a9045
tests/std/tests/P0660R10_jthread_and_cv_any/test.cpp
@@ -234,9 +234,10 @@ int main() {
234
condition_variable_any cv;
235
unique_lock lck{m};
236
auto started_at = chrono::steady_clock::now();
237
- assert(cv.wait_for(lck, never_stopped.get_token(), 100ms, [] { return false; }) == false);
+ auto until = started_at + 100ms;
238
+ assert(cv.wait_until(lck, never_stopped.get_token(), until, [] { return false; }) == false);
239
// not a timing assumption: the wait_for must wait at least that long
- assert(started_at + 100ms <= chrono::steady_clock::now());
240
+ assert(until <= chrono::steady_clock::now());
241
});
242
}
243
0 commit comments