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
11 // <condition_variable>
13 // class condition_variable;
15 // void wait(unique_lock<mutex>& lock);
17 #include <condition_variable>
22 #include "make_test_thread.h"
23 #include "test_macros.h"
25 std::condition_variable cv
;
33 std::unique_lock
<std::mutex
> lk(mut
);
44 std::unique_lock
<std::mutex
> lk(mut
);
45 std::thread t
= support::make_test_thread(f
);