1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-threads
12 // <condition_variable>
14 // class condition_variable_any;
18 #include <condition_variable>
23 #include "make_test_thread.h"
24 #include "test_macros.h"
26 std::condition_variable_any cv
;
28 typedef std::timed_mutex L0
;
29 typedef std::unique_lock
<L0
> L1
;
59 std::thread t1
= support::make_test_thread(f1
);
60 std::thread t2
= support::make_test_thread(f2
);
61 std::this_thread::sleep_for(std::chrono::milliseconds(100));
69 std::this_thread::sleep_for(std::chrono::milliseconds(100));
86 std::this_thread::sleep_for(std::chrono::milliseconds(100));