[Lldb-commits] [PATCH] D53412: [lldb] Fixed deadlock when SBProcess is Kill()ed and inspected

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 28 07:24:44 PDT 2019


clayborg added a comment.

Or better yet, create a structure that everyone must use and have the locking exist in the class itself:

  struct ProcessLocker {
    std::lock_guard<std::recursive_mutex> guard;
    Process::StopLocker stop_locker;
  
    void ProcessLocker(Process &process) {
       ...
    }
  };




Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53412/new/

https://reviews.llvm.org/D53412





More information about the lldb-commits mailing list