//===-- ThreadLauncher.cpp ------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // lldb Includes #include "lldb/Host/ThreadLauncher.h" #include "lldb/Host/HostNativeThread.h" #include "lldb/Host/HostThread.h" #include "lldb/Utility/Log.h" #if defined(_WIN32) #include "lldb/Host/windows/windows.h" #endif #include "llvm/Support/WindowsError.h" usingnamespacelldb; usingnamespacelldb_private; llvm::Expected<HostThread> ThreadLauncher::LaunchThread(llvm::StringRef name, std::function<thread_result_t()> impl, size_t min_stack_byte_size) { … }