1 //===-- SBHostOS.h ----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBHostOS_h_
11 #define LLDB_SBHostOS_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
18 class LLDB_API SBHostOS {
20 static lldb::SBFileSpec GetProgramFileSpec();
22 static lldb::SBFileSpec GetLLDBPythonPath();
24 static lldb::SBFileSpec GetLLDBPath(lldb::PathType path_type);
26 static lldb::SBFileSpec GetUserHomeDirectory();
28 static void ThreadCreated(const char *name);
30 static lldb::thread_t ThreadCreate(const char *name,
31 lldb::thread_func_t thread_function,
32 void *thread_arg, lldb::SBError *err);
34 static bool ThreadCancel(lldb::thread_t thread, lldb::SBError *err);
36 static bool ThreadDetach(lldb::thread_t thread, lldb::SBError *err);
37 static bool ThreadJoin(lldb::thread_t thread, lldb::thread_result_t *result,
45 #endif // LLDB_SBHostOS_h_