summaryrefslogtreecommitdiff
path: root/adbconnection/adbconnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'adbconnection/adbconnection.h')
-rw-r--r--adbconnection/adbconnection.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/adbconnection/adbconnection.h b/adbconnection/adbconnection.h
index e63a3b607d..04e39bf4ff 100644
--- a/adbconnection/adbconnection.h
+++ b/adbconnection/adbconnection.h
@@ -72,7 +72,7 @@ struct AdbConnectionDdmCallback : public art::DdmCallback {
class AdbConnectionState {
public:
- explicit AdbConnectionState(const std::string& agent_name);
+ explicit AdbConnectionState(const std::string& name);
// Called on the listening thread to start dealing with new input. thr is used to attach the new
// thread to the runtime.
@@ -85,6 +85,11 @@ class AdbConnectionState {
// Stops debugger threads during shutdown.
void StopDebuggerThreads();
+ // If StartDebuggerThreads was called successfully.
+ bool DebuggerThreadsStarted() {
+ return started_debugger_threads_;
+ }
+
private:
uint32_t NextDdmId();
@@ -161,6 +166,8 @@ class AdbConnectionState {
std::atomic<uint32_t> next_ddm_id_;
+ bool started_debugger_threads_;
+
socklen_t control_addr_len_;
union {
sockaddr_un controlAddrUn;