[Lldb-commits] [lldb] r369621 - [debugserver] Switch back to std::once_flag
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 21 20:48:19 PDT 2019
Author: jdevlieghere
Date: Wed Aug 21 20:48:19 2019
New Revision: 369621
URL: http://llvm.org/viewvc/llvm-project?rev=369621&view=rev
Log:
[debugserver] Switch back to std::once_flag
We cannot use llvm::once_flag in debugserver because doesn't link
against llvm.
Modified:
lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
Modified: lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp?rev=369621&r1=369620&r2=369621&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/DarwinLog/DarwinLogCollector.cpp Wed Aug 21 20:48:19 2019
@@ -46,7 +46,7 @@ static os_activity_stream_set_event_hand
s_os_activity_stream_set_event_handler;
bool LookupSPICalls() {
- static llvm::once_flag s_once_flag;
+ static std::once_flag s_once_flag;
static bool s_has_spi;
std::call_once(s_once_flag, [] {
More information about the lldb-commits
mailing list