[Lldb-commits] [lldb] [lldb] Expose the Target API mutex through the SB API (PR #133295)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 27 15:25:32 PDT 2025
================
@@ -0,0 +1,48 @@
+//===-- SBMutex.h
+//----------------------------------------------------------===//
+//
+// 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 LLDB_API_SBLOCK_H
+#define LLDB_API_SBLOCK_H
+
+#include "lldb/API/SBDefines.h"
+#include "lldb/lldb-forward.h"
+#include <mutex>
+
+namespace lldb {
+
+/// A general-purpose lock in the SB API. The lock can be locked and unlocked.
+/// The default constructed lock is unlocked, but generally the lock is locked
+/// when it is returned from a class.
----------------
bulbazord wrote:
The documentation in this file probably needs to be rewritten.
https://github.com/llvm/llvm-project/pull/133295
More information about the lldb-commits
mailing list