blob: 826548a8c5bc0eedb7965863f322456c0f662052 [file] [log] [blame]
Johnny Chen5cb6cab2011-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
19 static void
20 ThreadCreated (const char *name);
21
22 static lldb::thread_t
23 ThreadCreate (const char *name,
24 void *(*thread_function)(void *),
25 void *thread_arg,
26 lldb::SBError *err);
27
28 static bool
29 ThreadCancel (lldb::thread_t thread,
30 lldb::SBError *err);
31
32 static bool
33 ThreadDetach (lldb::thread_t thread,
34 lldb::SBError *err);
35 static bool
36 ThreadJoin (lldb::thread_t thread,
37 void **result,
38 lldb::SBError *err);
39};
40
41} // namespace lldb