OLD | NEW |
---|---|
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 Loading... | |
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 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. | |
837 * This function does not expect there to be a current isolate. | |
838 * | |
839 * \param isolate The isolate to be made runnable. | |
840 */ | |
841 DART_EXPORT bool Dart_MakeIsolateRunnable(Dart_Isolate isolate); | |
Ivan Posva
2013/04/05 15:51:59
Dart_IsolateMakeRunnable. We have tried to follow
siva
2013/04/05 17:43:29
Done.
| |
842 | |
843 | |
830 // --- Messages and Ports --- | 844 // --- Messages and Ports --- |
831 | 845 |
832 /** | 846 /** |
833 * A port is used to send or receive inter-isolate messages | 847 * A port is used to send or receive inter-isolate messages |
834 */ | 848 */ |
835 typedef int64_t Dart_Port; | 849 typedef int64_t Dart_Port; |
836 | 850 |
837 /** | 851 /** |
838 * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid | 852 * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid |
839 * port. | 853 * port. |
(...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2557 * | 2571 * |
2558 * \param object An object. | 2572 * \param object An object. |
2559 * \param peer A value to store in the peer field. | 2573 * \param peer A value to store in the peer field. |
2560 * | 2574 * |
2561 * \return Returns an error if 'object' is a subtype of Null, num, or | 2575 * \return Returns an error if 'object' is a subtype of Null, num, or |
2562 * bool. | 2576 * bool. |
2563 */ | 2577 */ |
2564 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2578 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
2565 | 2579 |
2566 #endif // INCLUDE_DART_API_H_ | 2580 #endif // INCLUDE_DART_API_H_ |
OLD | NEW |