aboutsummaryrefslogtreecommitdiff
path: root/source/Host/linux/ThisThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Host/linux/ThisThread.cpp')
-rw-r--r--source/Host/linux/ThisThread.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/Host/linux/ThisThread.cpp b/source/Host/linux/ThisThread.cpp
new file mode 100644
index 000000000000..1c68c8ba16d7
--- /dev/null
+++ b/source/Host/linux/ThisThread.cpp
@@ -0,0 +1,29 @@
+//===-- ThisThread.cpp ------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Host/HostNativeThread.h"
+#include "lldb/Host/ThisThread.h"
+
+#include "llvm/ADT/SmallVector.h"
+
+#include <pthread.h>
+
+using namespace lldb_private;
+
+void
+ThisThread::SetName(llvm::StringRef name)
+{
+ HostNativeThread::SetName(::pthread_self(), name);
+}
+
+void
+ThisThread::GetName(llvm::SmallVectorImpl<char> &name)
+{
+ HostNativeThread::GetName(::pthread_self(), name);
+}