Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2122)

Unified Diff: runtime/bin/dbg_connection.cc

Issue 1291163002: Join embeder threads on Windows. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/dbg_connection.h ('k') | runtime/bin/dbg_connection_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
diff --git a/runtime/bin/dbg_connection.cc b/runtime/bin/dbg_connection.cc
index 2cc4cd83ffa761e4bc780f45c94c038b0980486a..6bd0cda256d67e5e109ffefcf55b1910c1461fc4 100644
--- a/runtime/bin/dbg_connection.cc
+++ b/runtime/bin/dbg_connection.cc
@@ -198,6 +198,9 @@ void DebuggerConnectionHandler::HandleMessages() {
msgbuf_->ReadData();
}
if (!msgbuf_->Alive()) {
+ if (trace_debug_protocol) {
+ Log::Print("Debugger is exiting HandleMessages loop.\n");
+ }
return;
}
@@ -344,6 +347,13 @@ int DebuggerConnectionHandler::StartHandler(const char* address,
}
+void DebuggerConnectionHandler::StopHandler() {
+ if (IsConnected()) {
+ DebuggerConnectionImpl::StopHandler(singleton_handler->debug_fd());
+ }
+}
+
+
void DebuggerConnectionHandler::WaitForConnection() {
ASSERT(handler_lock_ != NULL);
MonitorLocker ml(handler_lock_);
« no previous file with comments | « runtime/bin/dbg_connection.h ('k') | runtime/bin/dbg_connection_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698