llvm-project/lldb/source/Target
Pavel Labath 5f05ea84d5 Simplify GetGlobalProperties functions of Thread/Process/Target
Summary:
"Initialization of function-local statics is guaranteed to occur only once even when called from
multiple threads, and may be more efficient than the equivalent code using std::call_once."
<http://en.cppreference.com/w/cpp/thread/call_once>

I'd add that it's also more readable.

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D17710

llvm-svn: 284601
2016-10-19 15:12:45 +00:00
..
ABI.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CMakeLists.txt Add StructuredData plugin type; showcase with new DarwinLog feature 2016-08-19 04:21:48 +00:00
CPPLanguageRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ExecutionContext.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FileAction.cpp Change FileAction::GetPath() to return a StringRef. 2016-09-23 22:11:51 +00:00
InstrumentationRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
InstrumentationRuntimeStopInfo.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
JITLoader.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
JITLoaderList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Language.cpp Update OptionGroup::SetValue to take StringRef. 2016-09-23 17:48:13 +00:00
LanguageRuntime.cpp Convert CommandObject constructors to StringRef. 2016-10-05 21:14:38 +00:00
Memory.cpp Make lldb -Werror clean on Windows. 2016-10-05 17:07:34 +00:00
MemoryHistory.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ObjCLanguageRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
OperatingSystem.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PathMappingList.cpp Change Module::RemapPath to use StringRef. 2016-09-23 18:42:38 +00:00
Platform.cpp Change Platform::GetRemoteSharedModule so if it's given a ModuleSpec 2016-10-05 02:29:13 +00:00
Process.cpp Simplify GetGlobalProperties functions of Thread/Process/Target 2016-10-19 15:12:45 +00:00
ProcessInfo.cpp Fix more functions in Args to use StringRef. 2016-09-19 17:54:06 +00:00
ProcessLaunchInfo.cpp Fix more functions in Args to use StringRef. 2016-09-19 17:54:06 +00:00
Queue.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
QueueItem.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
QueueList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
RegisterContext.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SectionLoadHistory.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SectionLoadList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StackFrame.cpp Make lldb -Werror clean on Windows. 2016-10-05 17:07:34 +00:00
StackFrameList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StackID.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StopInfo.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StructuredDataPlugin.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SystemRuntime.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Target.cpp Simplify GetGlobalProperties functions of Thread/Process/Target 2016-10-19 15:12:45 +00:00
TargetList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Thread.cpp Simplify GetGlobalProperties functions of Thread/Process/Target 2016-10-19 15:12:45 +00:00
ThreadCollection.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlan.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanBase.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallFunction.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallFunctionUsingABI.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallOnFunctionExit.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanCallUserExpression.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanPython.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanRunToAddress.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanShouldStopHere.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepInRange.cpp Make lldb::Regex use StringRef. 2016-09-21 16:01:28 +00:00
ThreadPlanStepInstruction.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepOut.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepOverBreakpoint.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepOverRange.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepRange.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepThrough.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanStepUntil.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadPlanTracer.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadSpec.cpp Serilize the thread options within the breakpoint options. 2016-09-22 22:00:59 +00:00
UnixSignals.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
UnwindAssembly.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00