================ @@ -0,0 +1,46 @@ +//===-- SBLock.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_private { +class APILock; +} + +namespace lldb { + +class LLDB_API SBLock { +public: + SBLock(); + SBLock(SBLock &&rhs); + SBLock &operator=(SBLock &&rhs); + ~SBLock(); + + bool IsValid() const; + + void Unlock() const; ---------------- vogelsgesang wrote:
should we add documentation for this class? I assume we would want to have this documented in https://lldb.llvm.org/python_api/ ? https://github.com/llvm/llvm-project/pull/131404 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits