Index: runtime/include/dart_api.h |
=================================================================== |
--- runtime/include/dart_api.h (revision 33281) |
+++ runtime/include/dart_api.h (working copy) |
@@ -72,6 +72,20 @@ |
*/ |
/** |
+ * An isolate is the unit of concurrency in Dart. Each isolate has |
+ * its own memory and thread of control. No state is shared between |
+ * isolates. Instead, isolates communicate by message passing. |
+ * |
+ * Each thread keeps track of its current isolate, which is the |
+ * isolate which is ready to execute on the current thread. The |
+ * current isolate may be NULL, in which case no isolate is ready to |
+ * execute. Most of the Dart apis require there to be a current |
+ * isolate in order to function without error. The current isolate is |
+ * set by any call to Dart_CreateIsolate or Dart_EnterIsolate. |
+ */ |
+typedef struct _Dart_Isolate* Dart_Isolate; |
+ |
+/** |
* An object reference managed by the Dart VM garbage collector. |
* |
* Because the garbage collector may move objects, it is unsafe to |
@@ -195,6 +209,7 @@ |
typedef struct _Dart_WeakPersistentHandle* Dart_WeakPersistentHandle; |
typedef void (*Dart_WeakPersistentHandleFinalizer)( |
+ Dart_Isolate isolate, |
Dart_WeakPersistentHandle handle, |
void* peer); |
typedef void (*Dart_PeerFinalizer)(void* peer); |
@@ -446,6 +461,7 @@ |
Dart_WeakPersistentHandleFinalizer callback); |
DART_EXPORT void Dart_DeleteWeakPersistentHandle( |
+ Dart_Isolate isolate, |
Dart_WeakPersistentHandle object); |
/** |
@@ -600,20 +616,6 @@ |
DART_EXPORT const char* Dart_VersionString(); |
/** |
- * An isolate is the unit of concurrency in Dart. Each isolate has |
- * its own memory and thread of control. No state is shared between |
- * isolates. Instead, isolates communicate by message passing. |
- * |
- * Each thread keeps track of its current isolate, which is the |
- * isolate which is ready to execute on the current thread. The |
- * current isolate may be NULL, in which case no isolate is ready to |
- * execute. Most of the Dart apis require there to be a current |
- * isolate in order to function without error. The current isolate is |
- * set by any call to Dart_CreateIsolate or Dart_EnterIsolate. |
- */ |
-typedef struct _Dart_Isolate* Dart_Isolate; |
- |
-/** |
* An isolate creation and initialization callback function. |
* |
* This callback, provided by the embedder, is called when the vm |