xref: /trueos/contrib/llvm/tools/lldb/include/lldb/API/SBHostOS.h (revision 958843c32b7a29741f2e45996b5b3e89f9e108b0)
1 //===-- SBHostOS.h ----------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLDB_SBHostOS_h_
11 #define LLDB_SBHostOS_h_
12 
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
15 
16 namespace lldb {
17 
18 class SBHostOS
19 {
20 public:
21 
22     static lldb::SBFileSpec
23     GetProgramFileSpec ();
24 
25     static lldb::SBFileSpec
26     GetLLDBPythonPath ();
27 
28     static void
29     ThreadCreated (const char *name);
30 
31     static lldb::thread_t
32     ThreadCreate (const char *name,
33                   thread_func_t thread_function,
34                   void *thread_arg,
35                   lldb::SBError *err);
36 
37     static bool
38     ThreadCancel (lldb::thread_t thread,
39                   lldb::SBError *err);
40 
41     static bool
42     ThreadDetach (lldb::thread_t thread,
43                   lldb::SBError *err);
44     static bool
45     ThreadJoin (lldb::thread_t thread,
46                 thread_result_t *result,
47                 lldb::SBError *err);
48 
49 
50 private:
51 
52 };
53 
54 
55 } // namespace lldb
56 
57 #endif // LLDB_SBHostOS_h_
58