[Lldb-commits] [lldb] [lldb] Remove ProcessRunLock::TrySetRunning (PR #135455)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Sun Apr 13 12:24:43 PDT 2025


================
@@ -29,8 +29,13 @@ class ProcessRunLock {
 
   bool ReadTryLock();
   bool ReadUnlock();
+
+  /// Set the process to running. Returns true if the process was stopped.
+  /// Return false if the process was running.
   bool SetRunning();
-  bool TrySetRunning();
+
+  /// Set the process to stopped. Returns true if the process was stopped.
+  /// Returns false if the process was running.
----------------
labath wrote:

```suggestion
  /// Set the process to stopped. Returns true if the process was running.
  /// Returns false if the process was stopped.
```

(at least, that's what the windows implementation does -- and I think it makes sense)

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


More information about the lldb-commits mailing list