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

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

Issue 297183003: Reduce CPU usage when no isolates need to be profiled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/stdio.cc ('k') | 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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 * the current isolate will be set to the provided isolate. 975 * the current isolate will be set to the provided isolate.
976 * 976 *
977 * Requires there to be no current isolate. 977 * Requires there to be no current isolate.
978 */ 978 */
979 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); 979 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate);
980 /* TODO(turnidge): Describe what happens if two threads attempt to 980 /* TODO(turnidge): Describe what happens if two threads attempt to
981 * enter the same isolate simultaneously. Check for this in the code. 981 * enter the same isolate simultaneously. Check for this in the code.
982 * Describe whether isolates are allowed to migrate. */ 982 * Describe whether isolates are allowed to migrate. */
983 983
984 /** 984 /**
985 * Notifies the VM that the current isolate is about to make a blocking call.
986 */
987 DART_EXPORT void Dart_IsolateBlocked();
988
989 /**
990 * Notifies the VM that the current isolate is no longer blocked.
991 */
992 DART_EXPORT void Dart_IsolateUnblocked();
993
994 /**
985 * Exits an isolate. After this call, Dart_CurrentIsolate will 995 * Exits an isolate. After this call, Dart_CurrentIsolate will
986 * return NULL. 996 * return NULL.
987 * 997 *
988 * Requires there to be a current isolate. 998 * Requires there to be a current isolate.
989 */ 999 */
990 DART_EXPORT void Dart_ExitIsolate(); 1000 DART_EXPORT void Dart_ExitIsolate();
991 /* TODO(turnidge): We don't want users of the api to be able to exit a 1001 /* TODO(turnidge): We don't want users of the api to be able to exit a
992 * "pure" dart isolate. Implement and document. */ 1002 * "pure" dart isolate. Implement and document. */
993 1003
994 /** 1004 /**
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 * NOTE: If multiple callbacks with the same name are registered, only the 2724 * NOTE: If multiple callbacks with the same name are registered, only the
2715 * last callback registered will be remembered. 2725 * last callback registered will be remembered.
2716 */ 2726 */
2717 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2727 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2718 const char* name, 2728 const char* name,
2719 Dart_ServiceRequestCallback callback, 2729 Dart_ServiceRequestCallback callback,
2720 void* user_data); 2730 void* user_data);
2721 2731
2722 2732
2723 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2733 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/stdio.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698