Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:42

0001 //===-- SBHostOS.h ----------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_API_SBHOSTOS_H
0010 #define LLDB_API_SBHOSTOS_H
0011 
0012 #include "lldb/API/SBDefines.h"
0013 #include "lldb/API/SBFileSpec.h"
0014 
0015 namespace lldb {
0016 
0017 class LLDB_API SBHostOS {
0018 public:
0019   static lldb::SBFileSpec GetProgramFileSpec();
0020 
0021   static lldb::SBFileSpec GetLLDBPythonPath();
0022 
0023   static lldb::SBFileSpec GetLLDBPath(lldb::PathType path_type);
0024 
0025   static lldb::SBFileSpec GetUserHomeDirectory();
0026 
0027   LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
0028                   "not portable, and is difficult to use from Python.")
0029   static void ThreadCreated(const char *name);
0030 
0031   LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
0032                   "not portable, and is difficult to use from Python.")
0033   static lldb::thread_t ThreadCreate(const char *name,
0034                                      lldb::thread_func_t thread_function,
0035                                      void *thread_arg, lldb::SBError *err);
0036 
0037   LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
0038                   "not portable, and is difficult to use from Python.")
0039   static bool ThreadCancel(lldb::thread_t thread, lldb::SBError *err);
0040 
0041   LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
0042                   "not portable, and is difficult to use from Python.")
0043   static bool ThreadDetach(lldb::thread_t thread, lldb::SBError *err);
0044 
0045   LLDB_DEPRECATED("Threading functionality in SBHostOS is not well supported, "
0046                   "not portable, and is difficult to use from Python.")
0047   static bool ThreadJoin(lldb::thread_t thread, lldb::thread_result_t *result,
0048                          lldb::SBError *err);
0049 
0050 private:
0051 };
0052 
0053 } // namespace lldb
0054 
0055 #endif // LLDB_API_SBHOSTOS_H