1//===-- HostThreadPosix.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_posix_HostThreadPosix_h_
10#define lldb_Host_posix_HostThreadPosix_h_
11
12#include "lldb/Host/HostNativeThreadBase.h"
13
14namespace lldb_private {
15
16class HostThreadPosix : public HostNativeThreadBase {
17  DISALLOW_COPY_AND_ASSIGN(HostThreadPosix);
18
19public:
20  HostThreadPosix();
21  HostThreadPosix(lldb::thread_t thread);
22  ~HostThreadPosix() override;
23
24  Status Join(lldb::thread_result_t *result) override;
25  Status Cancel() override;
26
27  Status Detach();
28};
29
30} // namespace lldb_private
31
32#endif // lldb_Host_posix_HostThreadPosix_h_
33