aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Host/linux/HostThreadLinux.h
blob: 9091f41dae473b0579af620417c8968d4aa7cb0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//===-- HostThreadLinux.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_linux_HostThreadLinux_h_
#define lldb_Host_linux_HostThreadLinux_h_

#include "lldb/Host/posix/HostThreadPosix.h"

#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallString.h"

namespace lldb_private
{

class HostThreadLinux : public HostThreadPosix
{
  public:
    HostThreadLinux();
    HostThreadLinux(lldb::thread_t thread);

    static void SetName(lldb::thread_t thread, llvm::StringRef name);
    static void GetName(lldb::thread_t thread, llvm::SmallVectorImpl<char> &name);
};
}

#endif