SBHostOS.h revision 24943d2ee8bfaa7cf5893e4709143924157a5c1e
1//===-- SBHostOS.h ----------------------------------------------*- 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#ifndef LLDB_SBHostOS_h_
11#define LLDB_SBHostOS_h_
12
13#include <LLDB/SBDefines.h>
14#include <LLDB/SBFileSpec.h>
15
16namespace lldb {
17
18class SBHostOS
19{
20public:
21
22    static lldb::SBFileSpec
23    GetProgramFileSpec ();
24
25    static void
26    ThreadCreated (const char *name);
27
28    static lldb::thread_t
29    ThreadCreate (const char *name,
30                  void *(*thread_function)(void *),
31                  void *thread_arg,
32                  lldb::SBError *err);
33
34    static bool
35    ThreadCancel (lldb::thread_t thread,
36                  lldb::SBError *err);
37
38    static bool
39    ThreadDetach (lldb::thread_t thread,
40                  lldb::SBError *err);
41    static bool
42    ThreadJoin (lldb::thread_t thread,
43                void **result,
44                lldb::SBError *err);
45
46
47private:
48
49};
50
51
52} // namespace lldb
53
54#endif // LLDB_SBHostOS_h_
55