blob: b170f8d6581038d6563ef3fc2aa5666edc32052b [file] [log] [blame]
Andrew Walbran3d2c1972020-04-07 12:24:26 +01001//===-- SBHostOS.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
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02009#ifndef LLDB_API_SBHOSTOS_H
10#define LLDB_API_SBHOSTOS_H
Andrew Walbran3d2c1972020-04-07 12:24:26 +010011
12#include "lldb/API/SBDefines.h"
13#include "lldb/API/SBFileSpec.h"
14
15namespace lldb {
16
17class LLDB_API SBHostOS {
18public:
19 static lldb::SBFileSpec GetProgramFileSpec();
20
21 static lldb::SBFileSpec GetLLDBPythonPath();
22
23 static lldb::SBFileSpec GetLLDBPath(lldb::PathType path_type);
24
25 static lldb::SBFileSpec GetUserHomeDirectory();
26
27 static void ThreadCreated(const char *name);
28
29 static lldb::thread_t ThreadCreate(const char *name,
30 lldb::thread_func_t thread_function,
31 void *thread_arg, lldb::SBError *err);
32
33 static bool ThreadCancel(lldb::thread_t thread, lldb::SBError *err);
34
35 static bool ThreadDetach(lldb::thread_t thread, lldb::SBError *err);
36 static bool ThreadJoin(lldb::thread_t thread, lldb::thread_result_t *result,
37 lldb::SBError *err);
38
39private:
40};
41
42} // namespace lldb
43
Olivier Deprezf4ef2d02021-04-20 13:36:24 +020044#endif // LLDB_API_SBHOSTOS_H