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

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

Issue 148453016: Add new Dart API function Dart_IsolateData which returns the peer isolate data associated with an i… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 DART_EXPORT void Dart_ShutdownIsolate(); 869 DART_EXPORT void Dart_ShutdownIsolate();
870 /* TODO(turnidge): Document behavior when there is no current isolate. */ 870 /* TODO(turnidge): Document behavior when there is no current isolate. */
871 871
872 /** 872 /**
873 * Returns the current isolate. Will return NULL if there is no 873 * Returns the current isolate. Will return NULL if there is no
874 * current isolate. 874 * current isolate.
875 */ 875 */
876 DART_EXPORT Dart_Isolate Dart_CurrentIsolate(); 876 DART_EXPORT Dart_Isolate Dart_CurrentIsolate();
877 877
878 /** 878 /**
879 * Returns the callback data which was passed to the isolate when it 879 * Returns the callback data associated with the current Isolate. This data was
880 * was created. 880 * passed to the isolate when it was created.
881 */ 881 */
882 DART_EXPORT void* Dart_CurrentIsolateData(); 882 DART_EXPORT void* Dart_CurrentIsolateData();
883 883
884 /** 884 /**
885 * Returns the callback data associated with the specified Isolate. This data
886 * was passed to the isolate when it was created.
887 * The embedder is responsible for ensuring the consistency of this data
888 * with respect to the lifecycle of an Isolate.
889 */
890 DART_EXPORT void* Dart_IsolateData(Dart_Isolate isolate);
891
892 /**
885 * Returns the debugging name for the current isolate. 893 * Returns the debugging name for the current isolate.
886 * 894 *
887 * This name is unique to each isolate and should only be used to make 895 * This name is unique to each isolate and should only be used to make
888 * debugging messages more comprehensible. 896 * debugging messages more comprehensible.
889 */ 897 */
890 DART_EXPORT Dart_Handle Dart_DebugName(); 898 DART_EXPORT Dart_Handle Dart_DebugName();
891 899
892 /** 900 /**
893 * Enters an isolate. After calling this function, 901 * Enters an isolate. After calling this function,
894 * the current isolate will be set to the provided isolate. 902 * the current isolate will be set to the provided isolate.
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 * be loaded in and the isolate can be run by the embedder. 2459 * be loaded in and the isolate can be run by the embedder.
2452 * 2460 *
2453 * NOTE: It is not safe to call this from multiple threads concurrently. 2461 * NOTE: It is not safe to call this from multiple threads concurrently.
2454 * 2462 *
2455 * \return Returns NULL if an error occurred. 2463 * \return Returns NULL if an error occurred.
2456 */ 2464 */
2457 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data); 2465 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data);
2458 2466
2459 2467
2460 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2468 #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