blob: ed2e8b0477b1b13f58e4a3ba0cbc048300e44575 [file] [log] [blame]
Johnny Chenfdc4a862011-07-19 22:41:47 +00001//===-- SWIG Interface for SBHostOS -----------------------------*- 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
10namespace lldb {
11
12class SBHostOS
13{
14public:
15
16 static lldb::SBFileSpec
17 GetProgramFileSpec ();
18
Greg Clayton06357c92014-07-30 17:38:47 +000019 static lldb::SBFileSpec
20 GetLLDBPythonPath ();
21
22 static lldb::SBFileSpec
23 GetLLDBPath (lldb::PathType path_type);
24
Jason Molenda878ae012016-02-19 00:05:17 +000025 static lldb::SBFileSpec
26 GetUserHomeDirectory ();
27
Johnny Chenfdc4a862011-07-19 22:41:47 +000028 static void
29 ThreadCreated (const char *name);
30
31 static lldb::thread_t
32 ThreadCreate (const char *name,
Deepak Panickal9b35cf52014-07-01 17:57:19 +000033 lldb::thread_func_t,
Johnny Chenfdc4a862011-07-19 22:41:47 +000034 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,
Deepak Panickal9b35cf52014-07-01 17:57:19 +000046 lldb::thread_result_t *result,
Johnny Chenfdc4a862011-07-19 22:41:47 +000047 lldb::SBError *err);
48};
49
50} // namespace lldb