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

Unified Diff: runtime/bin/isolate_data.h

Issue 10693039: Terminate event handler thread on isolate shutdown. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding new file to gyp file Created 8 years, 6 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_win.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/isolate_data.h
diff --git a/runtime/bin/isolate_data.h b/runtime/bin/isolate_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..06ac164d77fa0d93c5897f619caa153e65150a83
--- /dev/null
+++ b/runtime/bin/isolate_data.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef BIN_ISOLATE_DATA_H_
+#define BIN_ISOLATE_DATA_H_
+
+#include "platform/globals.h"
+
+// Forward declaration.
+class EventHandler;
+
+// Data associated with every isolate in the standalone VM
+// embedding. This is used to free external resources for each isolate
+// when the isolate shuts down.
+class IsolateData {
+ public:
+ IsolateData() : event_handler(NULL) {}
+
+ EventHandler* event_handler;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(IsolateData);
+};
+
+#endif // BIN_ISOLATE_DATA_H_
« no previous file with comments | « runtime/bin/eventhandler_win.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698