[libcxx][test] Fix a test for the range of file offsets on ARMv7 Linux targets. ...
[llvm-project.git] / libcxx / test / std / thread / thread.latch / count_down.pass.cpp
blobf33f7b21908d413f90785043af1928e7b392b634
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: no-threads
10 // UNSUPPORTED: c++03, c++11, c++14, c++17
12 // XFAIL: availability-synchronization_library-missing
14 // <latch>
16 #include <latch>
17 #include <thread>
19 #include "make_test_thread.h"
20 #include "test_macros.h"
22 int main(int, char**)
24 std::latch l(2);
26 l.count_down();
27 std::thread t = support::make_test_thread([&](){
28 l.count_down();
29 });
30 l.wait();
31 t.join();
33 return 0;