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

Side by Side Diff: runtime/include/dart_api.h

Issue 18862004: Call shutdown callback before the isolate is destroyed (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 * isolate was running when the exception was thrown. 659 * isolate was running when the exception was thrown.
660 * 660 *
661 * \param error The unhandled exception or error. This handle's scope is 661 * \param error The unhandled exception or error. This handle's scope is
662 * only valid until the embedder returns from this callback. 662 * only valid until the embedder returns from this callback.
663 */ 663 */
664 typedef void (*Dart_IsolateUnhandledExceptionCallback)(Dart_Handle error); 664 typedef void (*Dart_IsolateUnhandledExceptionCallback)(Dart_Handle error);
665 665
666 /** 666 /**
667 * An isolate shutdown callback function. 667 * An isolate shutdown callback function.
668 * 668 *
669 * This callback, provided by the embedder, is called after the vm 669 * This callback, provided by the embedder, is called before the vm
670 * shuts down an isolate. Since the isolate has been shut down, it is 670 * shuts down an isolate. The isolate being shutdown will be the current
671 * not safe to enter the isolate or use it to run any Dart code. 671 * isolate. It is safe to run Dart code.
672 * 672 *
673 * This function should be used to dispose of native resources that 673 * This function should be used to dispose of native resources that
674 * are allocated to an isolate in order to avoid leaks. 674 * are allocated to an isolate in order to avoid leaks.
675 * 675 *
676 * \param callback_data The same callback data which was passed to the 676 * \param callback_data The same callback data which was passed to the
677 * isolate when it was created. 677 * isolate when it was created.
678 * 678 *
679 */ 679 */
680 typedef void (*Dart_IsolateShutdownCallback)(void* callback_data); 680 typedef void (*Dart_IsolateShutdownCallback)(void* callback_data);
681 681
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 * 2199 *
2200 * \param object An object. 2200 * \param object An object.
2201 * \param peer A value to store in the peer field. 2201 * \param peer A value to store in the peer field.
2202 * 2202 *
2203 * \return Returns an error if 'object' is a subtype of Null, num, or 2203 * \return Returns an error if 'object' is a subtype of Null, num, or
2204 * bool. 2204 * bool.
2205 */ 2205 */
2206 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2206 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2207 2207
2208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2208 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698