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

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

Issue 13452007: Add new Dart API call Dart_MakeIsolateRunnable(). This would allow an (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « runtime/bin/main.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_API_H_ 5 #ifndef INCLUDE_DART_API_H_
6 #define INCLUDE_DART_API_H_ 6 #define INCLUDE_DART_API_H_
7 7
8 /** \mainpage Dart Embedding API Reference 8 /** \mainpage Dart Embedding API Reference
9 * 9 *
10 * Dart is a class-based programming language for creating structured 10 * Dart is a class-based programming language for creating structured
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 * 'isolate' does not execute any further Dart code, then the 820 * 'isolate' does not execute any further Dart code, then the
821 * interrupt will not occur at all. If and when the isolate is 821 * interrupt will not occur at all. If and when the isolate is
822 * interrupted, the isolate interrupt callback will be invoked with 822 * interrupted, the isolate interrupt callback will be invoked with
823 * 'isolate' as the current isolate (see 823 * 'isolate' as the current isolate (see
824 * Dart_IsolateInterruptCallback). 824 * Dart_IsolateInterruptCallback).
825 * 825 *
826 * \param isolate The isolate to be interrupted. 826 * \param isolate The isolate to be interrupted.
827 */ 827 */
828 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate); 828 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate);
829 829
830
831 /**
832 * Make current isolate runnable.
833 *
834 * When isolates are spawned this function is used to indicate that
835 * the creation and initialization (including script loading) of the
836 * isolate is complete and the isolate can start running code.
Ivan Posva 2013/04/05 04:18:04 It is not clear from this description whether the
837 */
838 DART_EXPORT Dart_Handle Dart_MakeIsolateRunnable();
839
840
830 // --- Messages and Ports --- 841 // --- Messages and Ports ---
831 842
832 /** 843 /**
833 * A port is used to send or receive inter-isolate messages 844 * A port is used to send or receive inter-isolate messages
834 */ 845 */
835 typedef int64_t Dart_Port; 846 typedef int64_t Dart_Port;
836 847
837 /** 848 /**
838 * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid 849 * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid
839 * port. 850 * port.
(...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 * 2568 *
2558 * \param object An object. 2569 * \param object An object.
2559 * \param peer A value to store in the peer field. 2570 * \param peer A value to store in the peer field.
2560 * 2571 *
2561 * \return Returns an error if 'object' is a subtype of Null, num, or 2572 * \return Returns an error if 'object' is a subtype of Null, num, or
2562 * bool. 2573 * bool.
2563 */ 2574 */
2564 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2575 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2565 2576
2566 #endif // INCLUDE_DART_API_H_ 2577 #endif // INCLUDE_DART_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698