[libcxx-commits] [libcxx] [libcxxabi] [libc++] Split the monolithic __threading_support header (PR #79654)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 29 12:22:31 PST 2024
================
@@ -0,0 +1,190 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___THREAD_SUPPORT_C11_H
+#define _LIBCPP___THREAD_SUPPORT_C11_H
+
+#include <__chrono/convert_to_timespec.h>
+#include <__chrono/duration.h>
+#include <__config>
+#include <ctime>
+#include <threads.h>
+
+#ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
+# pragma GCC system_header
+#endif
+
+typedef ::timespec __libcpp_timespec_t;
----------------
philnik777 wrote:
Maybe refactor these to `using` aliases in a follow-up patch?
https://github.com/llvm/llvm-project/pull/79654
More information about the libcxx-commits
mailing list