Johnny Chen | 5cb6cab | 2011-07-19 22:41:47 +0000 | [diff] [blame^] | 1 | //===-- 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 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | class SBHostOS |
| 13 | { |
| 14 | public: |
| 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 |