LLDB  mainline
HostThreadWindows.h
Go to the documentation of this file.
1 //===-- HostThreadWindows.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef lldb_Host_windows_HostThreadWindows_h_
10 #define lldb_Host_windows_HostThreadWindows_h_
11 
13 
14 #include "llvm/ADT/SmallString.h"
15 
16 namespace lldb_private {
17 
19  HostThreadWindows(const HostThreadWindows &) = delete;
20  const HostThreadWindows &operator=(const HostThreadWindows &) = delete;
21 
22 public:
25  virtual ~HostThreadWindows();
26 
27  void SetOwnsHandle(bool owns);
28 
29  Status Join(lldb::thread_result_t *result) override;
30  Status Cancel() override;
31  void Reset() override;
32  bool EqualsThread(lldb::thread_t thread) const override;
33 
34  lldb::tid_t GetThreadId() const;
35 
36 private:
38 };
39 }
40 
41 #endif
lldb_private::HostThreadWindows::EqualsThread
bool EqualsThread(lldb::thread_t thread) const override
Definition: HostThreadWindows.cpp:70
lldb_private::HostNativeThreadBase
Definition: HostNativeThreadBase.h:24
HostNativeThreadBase.h
lldb_private::HostThreadWindows::HostThreadWindows
HostThreadWindows()
Definition: HostThreadWindows.cpp:23
lldb::thread_t
pthread_t thread_t
Definition: lldb-types.h:58
lldb_private::HostThreadWindows::~HostThreadWindows
virtual ~HostThreadWindows()
Definition: HostThreadWindows.cpp:29
lldb_private::HostThreadWindows::m_owns_handle
bool m_owns_handle
Definition: HostThreadWindows.h:37
lldb_private::HostThreadWindows::operator=
const HostThreadWindows & operator=(const HostThreadWindows &)=delete
lldb_private::Status
Definition: Status.h:44
lldb::thread_result_t
void * thread_result_t
Definition: lldb-types.h:62
lldb_private::HostThreadWindows
Definition: HostThreadWindows.h:18
lldb_private::HostThreadWindows::GetThreadId
lldb::tid_t GetThreadId() const
Definition: HostThreadWindows.cpp:59
lldb_private::HostThreadWindows::Cancel
Status Cancel() override
Definition: HostThreadWindows.cpp:51
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::HostThreadWindows::Join
Status Join(lldb::thread_result_t *result) override
Definition: HostThreadWindows.cpp:33
lldb_private::HostThreadWindows::Reset
void Reset() override
Definition: HostThreadWindows.cpp:63
lldb_private::HostThreadWindows::SetOwnsHandle
void SetOwnsHandle(bool owns)
Definition: HostThreadWindows.cpp:31
lldb::tid_t
uint64_t tid_t
Definition: lldb-types.h:86