blob: d9f42160bf09e5db6e1936d3d3a17ac5d0195930 [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
Johnny Chenfdc4a862011-07-19 22:41:47 +000025 static void
26 ThreadCreated (const char *name);
27
28 static lldb::thread_t
29 ThreadCreate (const char *name,
Deepak Panickal9b35cf52014-07-01 17:57:19 +000030 lldb::thread_func_t,
Johnny Chenfdc4a862011-07-19 22:41:47 +000031 void *thread_arg,
32 lldb::SBError *err);
33
34 static bool
35 ThreadCancel (lldb::thread_t thread,
36 lldb::SBError *err);
37
38 static bool
39 ThreadDetach (lldb::thread_t thread,
40 lldb::SBError *err);
41 static bool
42 ThreadJoin (lldb::thread_t thread,
Deepak Panickal9b35cf52014-07-01 17:57:19 +000043 lldb::thread_result_t *result,
Johnny Chenfdc4a862011-07-19 22:41:47 +000044 lldb::SBError *err);
45};
46
47} // namespace lldb