[libc-commits] [libc] [libc] at_quick_exit function implemented (PR #94317)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Tue Jun 4 15:38:58 PDT 2024
================
@@ -0,0 +1,37 @@
+//===-- Implementation of at_quick_exit -----------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdlib/at_quick_exit.h"
+#include "src/__support/CPP/mutex.h" // lock_guard
+#include "src/__support/blockstore.h"
+#include "src/__support/common.h"
+#include "src/__support/fixedvector.h"
+#include "src/__support/threads/mutex.h"
+#include "src/stdlib/exit_handler.h"
+namespace LIBC_NAMESPACE {
+
+extern "C" {
+
+int __cxa_at_quick_exit(AtExitCallback *callback, void *payload, void *) {
----------------
michaelrj-google wrote:
These `__cxa` functions aren't used right now, so they can be removed.
https://github.com/llvm/llvm-project/pull/94317
More information about the libc-commits
mailing list