aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Host/ThreadLauncher.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Host/ThreadLauncher.h')
-rw-r--r--include/lldb/Host/ThreadLauncher.h49
1 files changed, 23 insertions, 26 deletions
diff --git a/include/lldb/Host/ThreadLauncher.h b/include/lldb/Host/ThreadLauncher.h
index b4e4cae4b763..0f2cb37c835a 100644
--- a/include/lldb/Host/ThreadLauncher.h
+++ b/include/lldb/Host/ThreadLauncher.h
@@ -1,4 +1,5 @@
-//===-- ThreadLauncher.h -----------------------------------------*- C++ -*-===//
+//===-- ThreadLauncher.h -----------------------------------------*- C++
+//-*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -16,31 +17,27 @@
#include "llvm/ADT/StringRef.h"
-namespace lldb_private
-{
-
-class ThreadLauncher
-{
- public:
- static HostThread LaunchThread(llvm::StringRef name,
- lldb::thread_func_t thread_function,
- lldb::thread_arg_t thread_arg,
- Error *error_ptr,
- size_t min_stack_byte_size = 0); // Minimum stack size in bytes, set stack size to zero for default platform thread stack size
-
- struct HostThreadCreateInfo
- {
- std::string thread_name;
- lldb::thread_func_t thread_fptr;
- lldb::thread_arg_t thread_arg;
-
- HostThreadCreateInfo(const char *name, lldb::thread_func_t fptr, lldb::thread_arg_t arg)
- : thread_name(name ? name : "")
- , thread_fptr(fptr)
- , thread_arg(arg)
- {
- }
- };
+namespace lldb_private {
+
+class ThreadLauncher {
+public:
+ static HostThread
+ LaunchThread(llvm::StringRef name, lldb::thread_func_t thread_function,
+ lldb::thread_arg_t thread_arg, Error *error_ptr,
+ size_t min_stack_byte_size = 0); // Minimum stack size in bytes,
+ // set stack size to zero for
+ // default platform thread stack
+ // size
+
+ struct HostThreadCreateInfo {
+ std::string thread_name;
+ lldb::thread_func_t thread_fptr;
+ lldb::thread_arg_t thread_arg;
+
+ HostThreadCreateInfo(const char *name, lldb::thread_func_t fptr,
+ lldb::thread_arg_t arg)
+ : thread_name(name ? name : ""), thread_fptr(fptr), thread_arg(arg) {}
+ };
};
}