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

Unified Diff: runtime/bin/main.cc

Issue 9112013: Thread pool changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added tread pool shutdown Created 8 years, 11 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/eventhandler_linux.cc ('k') | runtime/bin/thread_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index b70226ff372d71acd9ce43816b644ec2b83f005a..fa40b2464cad280f8aff96ad0547e530336eccda 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -11,6 +11,7 @@
#include "bin/builtin.h"
#include "bin/dartutils.h"
+#include "bin/eventhandler.h"
#include "bin/file.h"
#include "bin/platform.h"
@@ -381,6 +382,9 @@ int main(int argc, char** argv) {
Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
+ // Initialize event handler.
+ EventHandler::Initialize();
+
// Initialize the Dart VM.
Dart_Initialize(CreateIsolateAndSetup, NULL);
@@ -504,5 +508,8 @@ int main(int argc, char** argv) {
DumpPprofSymbolInfo();
// Shutdown the isolate.
Dart_ShutdownIsolate();
+ // Terminate event handler.
+ EventHandler::Terminate();
+
return 0;
}
« no previous file with comments | « runtime/bin/eventhandler_linux.cc ('k') | runtime/bin/thread_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698