Take the Target API lock before letting the Python code start to work constructing...
authorJim Ingham <jingham@apple.com>
Fri, 7 Dec 2012 17:42:15 +0000 (17:42 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 7 Dec 2012 17:42:15 +0000 (17:42 +0000)
commit85e276b8aee0bbade2312b94f47237b7cd25beb8
treec93acc9c22b4abf2a0205d1ffa45d2801f072b3f
parente5df38120121876ebbd21e9298ed54a9bc05e8a9
Take the Target API lock before letting the Python code start to work constructing threads, otherwise we will risk a lock-inversion deadlock between the thread list and the API mutex.

<rdar://problem/12554049>

llvm-svn: 169612
lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp