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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits