[libcxx-commits] [libcxx] [libc++] Don't try to wait on a thread that hasn't started in std::async (PR #125433)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 19 08:13:27 PST 2025


================
@@ -0,0 +1,51 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// UNSUPPORTED: no-threads, no-exceptions
+
+// UNSUPPORTED: c++03
+
+// There is no way to limit the number of threads on windows
+// UNSUPPORTED: msvc
----------------
ldionne wrote:

```suggestion
// UNSUPPORTED: windows
```

Otherwise, you are marking this as unsupported when we use an MSVC-compatible front-end, which is a different thing. They happen to be equivalent in our current CI setup, but in principle we could use an MSVC-compatible frontend to compile stuff targeted for Linux, for example. Unlikely to ever happen, but you get the point.

https://github.com/llvm/llvm-project/pull/125433


More information about the libcxx-commits mailing list