Make one mutex for the lldb_private::Platform class that can be used to protect with...
authorGreg Clayton <gclayton@apple.com>
Mon, 2 Feb 2015 20:45:17 +0000 (20:45 +0000)
committerGreg Clayton <gclayton@apple.com>
Mon, 2 Feb 2015 20:45:17 +0000 (20:45 +0000)
commit7597b353b3cdf56af79b8abb86b5a5d1330af4e2
treef2b11da5791fab9dac01854c5a9fdd5a92fe261c
parent49a766e46885570266a06b6bf8fbd5ee31783d8a
Make one mutex for the lldb_private::Platform class that can be used to protect with modifying member variables. This mutex is designed to be used for simple modifications, so the lock should be taken, modify the member variable and released. We need to make sure this isn't used with any code that cause code to rely or reenter on another thread.

Partial fix for: <rdar://problem/19575304>

llvm-svn: 227855
lldb/include/lldb/Target/Platform.h
lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
lldb/source/Target/Platform.cpp