1 //===-- Host.h --------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_HOST_LINUX_HOST_H 10 #define LLDB_HOST_LINUX_HOST_H 11 12 #include "lldb/lldb-types.h" 13 #include <optional> 14 15 namespace lldb_private { 16 17 // Get PID (i.e. the primary thread ID) corresponding to the specified TID. 18 std::optional<lldb::pid_t> getPIDForTID(lldb::pid_t tid); 19 20 } // namespace lldb_private 21 22 #endif // #ifndef LLDB_HOST_LINUX_HOST_H 23