pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-01-17
2014-01-17 15:49:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e0fa988cae2aa15bfda8a0d0a8016e95e377a1dc (
18
lines) (+
17
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
GC: Give some more info to destruct_cb().
1183:
*! @member function(:void) "post_cb" *! This function is called when the mark and sweep pass of the gc *! is done.
-
*! @member function(object:void) "destruct_cb"
+
*! @member function(object
,int,int
:void) "destruct_cb"
*! This function is called once for each object that is part of *! a cycle just before the gc will destruct it.
-
+
*! The arguments are:
+
*! @dl
+
*! @item
+
*! The object to be destructed.
+
*! @item
+
*! The reason for it being destructed. One of:
+
*! @int
+
*! @value Object.DESTRUCT_CLEANUP
+
*! Destructed during exit.
+
*! @value Object.DESTRUCT_GC
+
*! Destructed during normal implicit or explicit @[gc()].
+
*! @endint
+
*! @item
+
*! The number of references it had.
+
*! @enddl
*! @member function(int:void) "done_cb" *! This function is called when the gc is done and about to exit. *! The argument is the same value as will be returned by gc().