diff options
Diffstat (limited to 'include/lldb/Host/ThisThread.h')
-rw-r--r-- | include/lldb/Host/ThisThread.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/lldb/Host/ThisThread.h b/include/lldb/Host/ThisThread.h new file mode 100644 index 000000000000..23acee9d3fc1 --- /dev/null +++ b/include/lldb/Host/ThisThread.h @@ -0,0 +1,40 @@ +//===-- ThisThread.h --------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef lldb_Host_ThisThread_h_ +#define lldb_Host_ThisThread_h_ + +#include "llvm/ADT/StringRef.h" + +#include <string> + +namespace llvm +{ +template <class T> class SmallVectorImpl; +} + +namespace lldb_private +{ + +class ThisThread +{ + private: + ThisThread(); + + public: + // ThisThread common functions. + static void SetName(llvm::StringRef name, int max_length); + + // ThisThread platform-specific functions. + static void SetName(llvm::StringRef name); + static void GetName(llvm::SmallVectorImpl<char> &name); +}; +} + +#endif |