LLDB  mainline
ThreadLauncher.h
Go to the documentation of this file.
1 //===-- ThreadLauncher.h -----------------------------------------*- C++
2 //-*-===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef lldb_Host_ThreadLauncher_h_
11 #define lldb_Host_ThreadLauncher_h_
12 
13 #include "lldb/Host/HostThread.h"
14 #include "lldb/Utility/Status.h"
15 #include "lldb/lldb-types.h"
16 
17 #include "llvm/ADT/StringRef.h"
18 
19 namespace lldb_private {
20 
22 public:
23  static HostThread
24  LaunchThread(llvm::StringRef name, lldb::thread_func_t thread_function,
25  lldb::thread_arg_t thread_arg, Status *error_ptr,
26  size_t min_stack_byte_size = 0); // Minimum stack size in bytes,
27  // set stack size to zero for
28  // default platform thread stack
29  // size
30 
32  std::string thread_name;
35 
36  HostThreadCreateInfo(const char *name, lldb::thread_func_t fptr,
38  : thread_name(name ? name : ""), thread_fptr(fptr), thread_arg(arg) {}
39  };
40 };
41 }
42 
43 #endif
void * thread_arg_t
Definition: lldb-types.h:61
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
static HostThread LaunchThread(llvm::StringRef name, lldb::thread_func_t thread_function, lldb::thread_arg_t thread_arg, Status *error_ptr, size_t min_stack_byte_size=0)
void *(* thread_func_t)(void *)
Definition: lldb-types.h:63
HostThreadCreateInfo(const char *name, lldb::thread_func_t fptr, lldb::thread_arg_t arg)
An error handling class.
Definition: Status.h:44