[Lldb-commits] [lldb] [lldb] make PlatformAndroid/AdbClient::GetSyncService threadsafe (PR #145382)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 8 06:33:47 PDT 2025


================
@@ -580,17 +564,23 @@ bool AdbClient::SyncService::IsConnected() const {
   return m_conn && m_conn->IsConnected();
 }
 
-AdbClient::SyncService::SyncService(std::unique_ptr<Connection> &&conn)
-    : m_conn(std::move(conn)) {}
+AdbClient::SyncService::SyncService(std::unique_ptr<Connection> conn, const std::string &device_id)
+    : m_conn(std::move(conn)), m_device_id(device_id) {}
----------------
labath wrote:

Use StringRef or move the string.

https://github.com/llvm/llvm-project/pull/145382


More information about the lldb-commits mailing list