Use double-checked locking to avoid locking the Module mutex if we don't need to...
authorGreg Clayton <gclayton@apple.com>
Fri, 24 Jul 2015 23:38:01 +0000 (23:38 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 24 Jul 2015 23:38:01 +0000 (23:38 +0000)
commit88c05f54a0708c5a41b965091758cad0f69a84f4
tree089dc23dbf225a4ac2021c8f693fd4104e36ab43
parentbe16d22f04fd23c3bb734aa8af9baa5bf58b7abc
Use double-checked locking to avoid locking the Module mutex if we don't need to. This avoid a deadlock we were seeing in Xcode.

<rdar://problem/21512067>

llvm-svn: 243180
lldb/include/lldb/Core/Module.h
lldb/source/Core/Module.cpp