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 // ~condition_variable();
17 #include <condition_variable>
22 #include "make_test_thread.h"
23 #include "test_macros.h"
25 std::condition_variable
* cv
;
27 typedef std::unique_lock
<std::mutex
> Lock
;
51 cv
= new std::condition_variable
;
52 std::thread th2
= support::make_test_thread(g
);
57 std::thread th1
= support::make_test_thread(f
);