mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 02:39:27 +00:00
- Update documentation of Dart_NewWeakPersistentHandle.
R=johnmccutchan@google.com Review URL: https://codereview.chromium.org//86233003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30643 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
290d4f0cd6
commit
b1fdbb40d1
|
@ -409,6 +409,12 @@ DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object);
|
|||
* This handle has the lifetime of the current isolate unless it is
|
||||
* explicitly deallocated by calling Dart_DeletePersistentHandle.
|
||||
*
|
||||
* If the object becomes unreachable the callback is invoked with the weak
|
||||
* persistent handle and the peer as arguments. This gives the native code the
|
||||
* ability to cleanup data associated with the object and to delete the weak
|
||||
* persistent handle. It is illegal to call into the VM from the callback,
|
||||
* except to delete the weak persistent handle.
|
||||
*
|
||||
* Requires there to be a current isolate.
|
||||
*
|
||||
* \param object An object.
|
||||
|
|
Loading…
Reference in a new issue