Fixed a multi-threaded race condition that could happen when communication classes are shutting down. We currently don't protect communication connection classes against multi-threaded access. The connection is stored in the lldb_private::Communication.m_connection_ap auto_ptr member. We either need to add protections when accessing this class or not let anything racy occur. With this fix, we are doing the latter.

git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@121647 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed