1//===-- SWIG Interface for SBHostOS -----------------------------*- C++ -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9namespace lldb { 10 11class SBHostOS 12{ 13public: 14 15 static lldb::SBFileSpec 16 GetProgramFileSpec (); 17 18 static lldb::SBFileSpec 19 GetLLDBPythonPath (); 20 21 static lldb::SBFileSpec 22 GetLLDBPath (lldb::PathType path_type); 23 24 static lldb::SBFileSpec 25 GetUserHomeDirectory (); 26 27 static void 28 ThreadCreated (const char *name); 29 30 static lldb::thread_t 31 ThreadCreate (const char *name, 32 lldb::thread_func_t, 33 void *thread_arg, 34 lldb::SBError *err); 35 36 static bool 37 ThreadCancel (lldb::thread_t thread, 38 lldb::SBError *err); 39 40 static bool 41 ThreadDetach (lldb::thread_t thread, 42 lldb::SBError *err); 43 static bool 44 ThreadJoin (lldb::thread_t thread, 45 lldb::thread_result_t *result, 46 lldb::SBError *err); 47}; 48 49} // namespace lldb 50