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

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

Issue 789243003: Interrupt isolates immediately (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.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 /* 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 * \param size Returns the size of the buffer. 1039 * \param size Returns the size of the buffer.
1040 * 1040 *
1041 * \return A valid handle if no error occurs during the operation. 1041 * \return A valid handle if no error occurs during the operation.
1042 */ 1042 */
1043 DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer, 1043 DART_EXPORT Dart_Handle Dart_CreateScriptSnapshot(uint8_t** buffer,
1044 intptr_t* size); 1044 intptr_t* size);
1045 1045
1046 /** 1046 /**
1047 * Schedules an interrupt for the specified isolate. 1047 * Schedules an interrupt for the specified isolate.
1048 * 1048 *
1049 * Note that the interrupt does not occur immediately. In fact, if 1049 * When the isolate is interrupted, the isolate interrupt callback
1050 * 'isolate' does not execute any further Dart code, then the 1050 * will be invoked with 'isolate' as the current isolate (see
1051 * interrupt will not occur at all. If and when the isolate is
1052 * interrupted, the isolate interrupt callback will be invoked with
1053 * 'isolate' as the current isolate (see
1054 * Dart_IsolateInterruptCallback). 1051 * Dart_IsolateInterruptCallback).
1055 * 1052 *
1056 * \param isolate The isolate to be interrupted. 1053 * \param isolate The isolate to be interrupted.
1057 */ 1054 */
1058 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate); 1055 DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate);
1059 1056
1060 /** 1057 /**
1061 * Make isolate runnable. 1058 * Make isolate runnable.
1062 * 1059 *
1063 * When isolates are spawned this function is used to indicate that 1060 * When isolates are spawned this function is used to indicate that
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 * NOTE: If multiple callbacks with the same name are registered, only the 2842 * NOTE: If multiple callbacks with the same name are registered, only the
2846 * last callback registered will be remembered. 2843 * last callback registered will be remembered.
2847 */ 2844 */
2848 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2845 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2849 const char* name, 2846 const char* name,
2850 Dart_ServiceRequestCallback callback, 2847 Dart_ServiceRequestCallback callback,
2851 void* user_data); 2848 void* user_data);
2852 2849
2853 2850
2854 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2851 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698