aboutsummaryrefslogtreecommitdiff
path: root/source/Host/linux/HostInfoLinux.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-04-16 16:04:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-04-16 16:04:10 +0000
commit74a628f776edb588bff8f8f5cc16eac947c9d631 (patch)
treedc32e010ac4902621e5a279bfeb48628f7f0e166 /source/Host/linux/HostInfoLinux.cpp
parentafed7be32164a598f8172282c249af7266c48b46 (diff)
Diffstat (limited to 'source/Host/linux/HostInfoLinux.cpp')
-rw-r--r--source/Host/linux/HostInfoLinux.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/Host/linux/HostInfoLinux.cpp b/source/Host/linux/HostInfoLinux.cpp
index 2a01f0676142..3ff722d5c109 100644
--- a/source/Host/linux/HostInfoLinux.cpp
+++ b/source/Host/linux/HostInfoLinux.cpp
@@ -8,7 +8,9 @@
//===----------------------------------------------------------------------===//
#include "lldb/Host/linux/HostInfoLinux.h"
-#include "lldb/Core/Log.h"
+#include "lldb/Utility/Log.h"
+
+#include "llvm/Support/Threading.h"
#include <limits.h>
#include <stdio.h>
@@ -39,13 +41,11 @@ void HostInfoLinux::Initialize() {
g_fields = new HostInfoLinuxFields();
}
-uint32_t HostInfoLinux::GetMaxThreadNameLength() { return 16; }
-
bool HostInfoLinux::GetOSVersion(uint32_t &major, uint32_t &minor,
uint32_t &update) {
static bool success = false;
- static std::once_flag g_once_flag;
- std::call_once(g_once_flag, []() {
+ static llvm::once_flag g_once_flag;
+ llvm::call_once(g_once_flag, []() {
struct utsname un;
if (uname(&un) == 0) {
@@ -100,8 +100,8 @@ bool HostInfoLinux::GetOSKernelDescription(std::string &s) {
llvm::StringRef HostInfoLinux::GetDistributionId() {
// Try to run 'lbs_release -i', and use that response
// for the distribution id.
- static std::once_flag g_once_flag;
- std::call_once(g_once_flag, []() {
+ static llvm::once_flag g_once_flag;
+ llvm::call_once(g_once_flag, []() {
Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_HOST));
if (log)