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

Unified Diff: dart/runtime/bin/eventhandler.cc

Issue 913753002: Reland "Introduce optional 'bool shared' parameter to ServerSocket.bind() ..." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 years, 10 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 | « no previous file | dart/runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/eventhandler.cc
diff --git a/dart/runtime/bin/eventhandler.cc b/dart/runtime/bin/eventhandler.cc
index 52f25399231338c9c05108151fdabf964a692302..9e53d5f67ba27efaa9bba2b9be2cb3c7a5c8b253 100644
--- a/dart/runtime/bin/eventhandler.cc
+++ b/dart/runtime/bin/eventhandler.cc
@@ -61,6 +61,9 @@ static Monitor *shutdown_monitor = NULL;
void EventHandler::Start() {
+ // Initialize global socket registry.
+ ListeningSocketRegistry::Initialize();
+
ASSERT(event_handler == NULL);
shutdown_monitor = new Monitor();
event_handler = new EventHandler();
@@ -91,6 +94,9 @@ void EventHandler::Stop() {
event_handler = NULL;
delete shutdown_monitor;
shutdown_monitor = NULL;
+
+ // Destroy the global socket registry.
+ ListeningSocketRegistry::Cleanup();
}
« no previous file with comments | « no previous file | dart/runtime/bin/eventhandler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698