[libc-commits] [libc] [libc] init uefi os target (PR #120687)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Sat Feb 8 05:15:42 PST 2025


================
@@ -0,0 +1,32 @@
+//===--- Implementation of a UEFI mutex class -------------------*- 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 LLVM_LIBC_SRC___SUPPORT_THREADS_UEFI_MUTEX_H
+#define LLVM_LIBC_SRC___SUPPORT_THREADS_UEFI_MUTEX_H
+
+#include "src/__support/macros/attributes.h"
+#include "src/__support/macros/config.h"
+#include "src/__support/threads/mutex_common.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+/// Implementation of a simple passthrough mutex which guards nothing. A
+/// complete Mutex locks in general cannot be implemented on the GPU. We simply
----------------
jhuber6 wrote:

Copied from the GPU implementation.

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


More information about the libc-commits mailing list